diff --git a/flake.nix b/flake.nix index 37973bac..3dbb8223 100644 --- a/flake.nix +++ b/flake.nix @@ -39,17 +39,6 @@ emacs = inputs.emacs-overlay.overlay; }; - homemanager = home-manager.nixosModules.home-manager { - home-manager.useGlobalPkgs = - true; # Use systems pkgs, disables nixpkgs.* options in home.nix - home-manager.useUserPackages = - true; # Enable installing packages through users.christoph.packages - home-manager.users.christoph = import ./home/home.nix; - - # Make our overlays available in home.nix - home-manager.extraSpecialArgs = { inherit inputs; }; - }; - # The rec expression turns a basic set into a set where self-referencing is possible. # It is a shorthand for recursive and allows to use the values defined in this set from its own scope. in rec { @@ -77,7 +66,17 @@ } # HomeManager - homemanager + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = + true; # Use systems pkgs, disables nixpkgs.* options in home.nix + home-manager.useUserPackages = + true; # Enable installing packages through users.christoph.packages + home-manager.users.christoph = import ./home/home.nix; + + # Make our overlays available in home.nix + home-manager.extraSpecialArgs = { inherit inputs; }; + } ]; # Make our inputs available to the configuration.nix (for importing modules) @@ -101,7 +100,17 @@ } # HomeManager - homemanager + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = + true; # Use systems pkgs, disables nixpkgs.* options in home.nix + home-manager.useUserPackages = + true; # Enable installing packages through users.christoph.packages + home-manager.users.christoph = import ./home/home.nix; + + # Make our overlays available in home.nix + home-manager.extraSpecialArgs = { inherit inputs; }; + } ]; # Make our inputs available to the configuration.nix (for importing modules)