diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 22 |
1 files changed, 7 insertions, 15 deletions
@@ -104,32 +104,24 @@ let registry = { ... }: { config.nix.registry = mapAttrs - (_: value: { - flake = value; - }) + (_: value: { flake = value; }) flakes; }; - home = platform: home-manager.lib.homeManagerConfiguration { + home = name: platform: home-manager.lib.homeManagerConfiguration { inherit pkgs; + extraSpecialArgs = { + inherit flakes; + }; + modules = [ ./home platform registry - hm-isolation.homeManagerModule ]; }; - - platformHome = platform: - let - value = home platform; - in - { - inherit value; - name = "${value.config.home.username}@${value.config.local.hostname}"; - }; in - mapAttrs' (_: platformHome) (importAll { root = ./home/platform; }); + mapAttrs home (importAll { root = ./home/platform; }); }; } |
