diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-19 14:43:10 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-19 14:43:10 +0200 |
commit | 8dc44d61522a9d949ab73c8fd9834e4f62d618ea (patch) | |
tree | fac02e458641f5d7fe036ef5a555c36c2b913042 | |
parent | dc4b030cbacef0951f1349a051c61209a964d766 (diff) | |
download | nixos-8dc44d61522a9d949ab73c8fd9834e4f62d618ea.tar nixos-8dc44d61522a9d949ab73c8fd9834e4f62d618ea.tar.gz nixos-8dc44d61522a9d949ab73c8fd9834e4f62d618ea.tar.bz2 nixos-8dc44d61522a9d949ab73c8fd9834e4f62d618ea.tar.xz nixos-8dc44d61522a9d949ab73c8fd9834e4f62d618ea.zip |
output homeConfigurations
-rw-r--r-- | flake.nix | 3 | ||||
-rw-r--r-- | user-profiles/core.nix | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -141,7 +141,8 @@ | |||
141 | in modulesAttrs // { inherit systemProfiles users userProfiles accounts; }; | 141 | in modulesAttrs // { inherit systemProfiles users userProfiles accounts; }; |
142 | nixosConfigurations = installerNixosConfigurations // nixImport rec { dir = ./hosts; _import = mkNixosConfiguration [] dir; }; | 142 | nixosConfigurations = installerNixosConfigurations // nixImport rec { dir = ./hosts; _import = mkNixosConfiguration [] dir; }; |
143 | 143 | ||
144 | homeManagerModules = nixImport rec { dir = ./home-modules; }; | 144 | homeModules = nixImport rec { dir = ./home-modules; }; |
145 | homeConfigurations = listToAttrs (concatLists (mapAttrsToList (hostname: nixosConfig: mapAttrsToList (username: configuration: nameValuePair "${username}@${hostname}" { inherit (configuration.home) activationPackage; }) nixosConfig.config.home-manager.users) self.nixosConfigurations)); | ||
145 | 146 | ||
146 | overlay = final: prev: composeManyExtensions (attrValues self.overlays) final prev; | 147 | overlay = final: prev: composeManyExtensions (attrValues self.overlays) final prev; |
147 | overlays = mapAttrs (_name: path: import path) overlayPaths; | 148 | overlays = mapAttrs (_name: path: import path) overlayPaths; |
diff --git a/user-profiles/core.nix b/user-profiles/core.nix index ff8cb9f9..cb2c400e 100644 --- a/user-profiles/core.nix +++ b/user-profiles/core.nix | |||
@@ -3,7 +3,7 @@ | |||
3 | users.users.${userName} = {}; # Just make sure the user is created | 3 | users.users.${userName} = {}; # Just make sure the user is created |
4 | 4 | ||
5 | home-manager.users.${userName} = { | 5 | home-manager.users.${userName} = { |
6 | imports = lib.attrValues flake.homeManagerModules; | 6 | imports = lib.attrValues flake.homeModules; |
7 | 7 | ||
8 | config = { | 8 | config = { |
9 | manual.manpages.enable = true; | 9 | manual.manpages.enable = true; |