diff --git a/flake.nix b/flake.nix index 6f08b6f..e04b091 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,11 @@ }@inputs: let system = "x86_64-linux"; + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + overlays = [ nix-vscode-extensions.overlays.default ]; + }; in { nixosConfigurations = { @@ -63,6 +68,7 @@ inherit username; inherit gpgSigningKey; }; + pkgs = pkgs; modules = [ ./hosts/${host} ]; @@ -80,6 +86,7 @@ inherit profile; inherit username; }; + pkgs = pkgs; modules = [ ./hosts/${host} ]; @@ -96,7 +103,9 @@ inherit host; inherit profile; inherit username; + }; + pkgs = pkgs; modules = [ (nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix") { environment.systemPackages = [ install-system.packages.${system}.default ]; } @@ -114,7 +123,7 @@ inherit profile; inherit username; }; - pkgs = nixpkgs.legacyPackages.${system}; + pkgs = pkgs; modules = [ ./homes/josh/home.nix stylix.homeModules.stylix diff --git a/modules/core/user.nix b/modules/core/user.nix index 49678a7..51c287c 100644 --- a/modules/core/user.nix +++ b/modules/core/user.nix @@ -15,7 +15,7 @@ in imports = [ inputs.home-manager.nixosModules.home-manager ]; home-manager = { useUserPackages = true; - useGlobalPkgs = false; + useGlobalPkgs = true; backupFileExtension = "backup"; extraSpecialArgs = { inherit diff --git a/modules/homes/default.nix b/modules/homes/default.nix index 299efe1..5a420c3 100644 --- a/modules/homes/default.nix +++ b/modules/homes/default.nix @@ -8,7 +8,6 @@ ./fzf.nix ./hyprland ./kitty.nix - ./overlays.nix ./stylix.nix ./vscodium.nix ./walker.nix diff --git a/modules/homes/overlays.nix b/modules/homes/overlays.nix deleted file mode 100644 index 00e3b0e..0000000 --- a/modules/homes/overlays.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - inputs, - ... -}: -{ - nixpkgs = { - overlays = [ - inputs.nix-vscode-extensions.overlays.default - ]; - }; -}