From cd4520a475d0b43a3d600636494eb3b4916f07cd Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 20 Oct 2024 13:19:39 -0500 Subject: use nixos module for home manager --- flake.nix | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 3b9f6be..4f5ef64 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ pkgs = nixpkgs.legacyPackages.${system}; userDetails = { username = "timmy"; - home.root = /home/timmy; + home.root = "/home/timmy"; home.downloads = /home/timmy/dls; email = "tjkeller.xyz"; fullname = "Tim Keller"; @@ -35,6 +35,19 @@ modules = [ ./modules/hosts/${hostname}/configuration.nix ./modules/root + home-manager.nixosModules.home-manager { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + users.${userDetails.username} = import ./modules/home; + extraSpecialArgs = { + inherit userDetails; + }; + sharedModules = [ + inputs.arkenfox.hmModules.arkenfox + ]; + }; + } ]; }; in { @@ -43,15 +56,15 @@ T495 = mkNixosConfiguration "T495"; }; - homeConfigurations.${userDetails.username} = home-manager.lib.homeManagerConfiguration { - inherit pkgs; - extraSpecialArgs = { - inherit userDetails; - }; - modules = [ - ./modules/home - inputs.arkenfox.hmModules.arkenfox - ]; - }; + #homeConfigurations.${userDetails.username} = home-manager.lib.homeManagerConfiguration { + # inherit pkgs; + # extraSpecialArgs = { + # inherit userDetails; + # }; + # modules = [ + # ./modules/home + # inputs.arkenfox.hmModules.arkenfox + # ]; + #}; }; } -- cgit v1.2.3