summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix22
1 files changed, 7 insertions, 15 deletions
diff --git a/flake.nix b/flake.nix
index 258901f..ed8ea1f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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; });
};
}