From c5c9e319f79c2976d9c6db2c9280f2313d27487f Mon Sep 17 00:00:00 2001 From: ChUrl Date: Wed, 13 Jul 2022 20:21:32 +0200 Subject: [PATCH] unbug bugs --- flake.nix | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) 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)