From 1bde6d09274a761b17bcb2f56207cb1cb37891b2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 19 Sep 2021 14:43:10 +0200 Subject: output homeConfigurations --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index cdea44b0..96b21940 100644 --- a/flake.nix +++ b/flake.nix @@ -141,7 +141,8 @@ in modulesAttrs // { inherit systemProfiles users userProfiles accounts; }; nixosConfigurations = installerNixosConfigurations // nixImport rec { dir = ./hosts; _import = mkNixosConfiguration [] dir; }; - homeManagerModules = nixImport rec { dir = ./home-modules; }; + homeModules = nixImport rec { dir = ./home-modules; }; + homeConfigurations = listToAttrs (concatLists (mapAttrsToList (hostname: nixosConfig: mapAttrsToList (username: configuration: nameValuePair "${username}@${hostname}" { inherit (configuration.home) activationPackage; }) nixosConfig.config.home-manager.users) self.nixosConfigurations)); overlay = final: prev: composeManyExtensions (attrValues self.overlays) final prev; overlays = mapAttrs (_name: path: import path) overlayPaths; -- cgit v1.2.3