From 61f3db56410f41d5249c88e44db60d9713dae26d Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 3 Dec 2024 21:19:39 -0600 Subject: home: big refactor --- flake.nix | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'flake.nix') 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; }); }; } -- cgit v1.2.3