diff --git a/configuration.nix b/configuration.nix index c28e013..d1f89b6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -134,6 +134,7 @@ drawio imv zathura + playerctl opentabletdriver # entertainment @@ -144,11 +145,14 @@ steam wine lutris + gamemode bottles - osu-lazer + osu-lazer + prismlauncher # theming catppuccin-gtk + catppuccin-cursors # fun stuff cbonsai @@ -171,6 +175,7 @@ cargo jre jdk + jdk17 jq nodejs polkit_gnome diff --git a/flake.lock b/flake.lock index 0b57064..706b036 100644 --- a/flake.lock +++ b/flake.lock @@ -24,9 +24,7 @@ "hyprland": { "inputs": { "hyprland-protocols": "hyprland-protocols", - "nixpkgs": [ - "nixpkgs" - ], + "nixpkgs": "nixpkgs", "wlroots": "wlroots", "xdph": "xdph" }, @@ -77,6 +75,22 @@ } }, "nixpkgs": { + "locked": { + "lastModified": 1671359686, + "narHash": "sha256-3MpC6yZo+Xn9cPordGz2/ii6IJpP2n8LE8e/ebUXLrs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "04f574a1c0fde90b51bf68198e2297ca4e7cccf4", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { "locked": { "lastModified": 1671108576, "narHash": "sha256-6ggOL6KoaELNA1562tnPjtAnQ9SwsKRTgeuaXvPzCwI=", @@ -96,7 +110,7 @@ "inputs": { "home-manager": "home-manager", "hyprland": "hyprland", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs_2" } }, "utils": { diff --git a/flake.nix b/flake.nix index 0b34bc3..9d5b88c 100644 --- a/flake.nix +++ b/flake.nix @@ -1,48 +1,37 @@ { - description = "notohh's flake"; - inputs = { - # Nixpkgs - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - - # Call hyprland - hyprland = { - url = "github:hyprwm/Hyprland"; - - inputs.nixpkgs.follows = "nixpkgs"; - }; - - # Home manager + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; - - }; - + }; + hyprland.url = "github:hyprwm/Hyprland"; }; - - outputs = { nixpkgs, home-manager, self, hyprland, ... }@inputs: { - - nixosConfigurations = { - nixos = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; flake-self = self; }; - - modules = [ ./configuration.nix - - hyprland.nixosModules.default - { programs.hyprland.enable = true; } - ]; + outputs = { self, nixpkgs, home-manager, hyprland, ... }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; }; - }; - homeConfigurations = { - "notoh@nixos" = home-manager.lib.homeManagerConfiguration { - pkgs = nixpkgs.legacyPackages.x86_64-linux; - extraSpecialArgs = { inherit inputs; }; - - modules = [./home.nix]; + lib = nixpkgs.lib; + + in { + nixosConfigurations = { + nixos = lib.nixosSystem { + inherit system; + modules = [ + ./configuration.nix + hyprland.nixosModules.default + {programs.hyprland.enable = true;} + home-manager.nixosModules.home-manager { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.notoh = import ./modules/home/home.nix; + } + ]; }; - }; + }; }; - } diff --git a/modules/home/home.nix b/modules/home/home.nix index f1ad3f7..162e16c 100644 --- a/modules/home/home.nix +++ b/modules/home/home.nix @@ -7,26 +7,6 @@ ]; - nixpkgs = { - - overlays = [ - - ]; - - config = { - - allowUnfree = true; - - allowUnfreePredicate = (_: true); - }; - }; - - - home = { - username = "notoh"; - homeDirectory = "/home/notoh/"; - }; - programs.home-manager.enable = true; programs.git.enable = true; diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index f970681..5caa5d0 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -82,7 +82,7 @@ in "$HOME/bin/:$PATH" ]; - GTK_THEME = "Catppuccin-Pink-Dark"; + GTK_THEME = "Catppuccin-Pink-Dark"; };