diff --git a/flake.nix b/flake.nix index 54ac7b3..d31f704 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,7 @@ specialArgs = { inherit inputs; inherit host; + inherit profile; inherit username; }; modules = [ @@ -55,6 +56,7 @@ specialArgs = { inherit inputs; inherit host; + inherit profile; inherit username; }; modules = [ @@ -68,11 +70,11 @@ homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration { extraSpecialArgs = { inherit inputs; + inherit profile; inherit username; }; pkgs = nixpkgs.legacyPackages.${system}; modules = [ - ./profiles/${profile} ./homes/${username}/home.nix stylix.homeModules.stylix ]; diff --git a/homes/josh/home.nix b/homes/josh/home.nix index 5c2d509..e5c3c3d 100644 --- a/homes/josh/home.nix +++ b/homes/josh/home.nix @@ -1,10 +1,12 @@ { + profile, ... }: { imports = [ ../../modules/homes ../../modules/options + ../../profiles/${profile} ]; modules.zsh.enable = true; diff --git a/hosts/vm/default.nix b/hosts/vm/default.nix index 796289f..fb6b2ea 100644 --- a/hosts/vm/default.nix +++ b/hosts/vm/default.nix @@ -1,9 +1,10 @@ { + profile, ... }: { imports = [ - ../../profiles/desktop + ../../profiles/${profile} ../../profiles/vm ../../modules/core ../../modules/options