diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-12-03 21:19:39 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-12-03 21:49:54 -0600 |
| commit | 61f3db56410f41d5249c88e44db60d9713dae26d (patch) | |
| tree | 49c2d5d5e4da331d139cfdc6034c0dba5980271b /flake.nix | |
| parent | 854f5ee287eb66db5a0713e2f4fac56794e3d735 (diff) | |
home: big refactor
Diffstat (limited to '')
| -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; }); }; } |
