summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-19 14:43:10 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-19 14:43:23 +0200
commit1bde6d09274a761b17bcb2f56207cb1cb37891b2 (patch)
tree59a604638068e8482c7ff94ef88055fac6128b60
parentae55b491987ad12922b4d4a5786118f4cbc4f62a (diff)
downloadnixos-1bde6d09274a761b17bcb2f56207cb1cb37891b2.tar
nixos-1bde6d09274a761b17bcb2f56207cb1cb37891b2.tar.gz
nixos-1bde6d09274a761b17bcb2f56207cb1cb37891b2.tar.bz2
nixos-1bde6d09274a761b17bcb2f56207cb1cb37891b2.tar.xz
nixos-1bde6d09274a761b17bcb2f56207cb1cb37891b2.zip
output homeConfigurationsflakes-template
-rw-r--r--flake.nix3
-rw-r--r--user-profiles/core.nix2
2 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index cdea44b0..96b21940 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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 8611a0bd..5e67a07e 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;