From 8dc44d61522a9d949ab73c8fd9834e4f62d618ea 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 021146ea..bb3c45c5 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