summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-01-02 16:21:34 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-01-03 20:18:01 +0100
commit3058034f82ba38314b9f4ce0f9b0055522c44f47 (patch)
tree21433e0429621fccd7b6817d101cf28b5ed7fe9d /flake.nix
parentb6e44495b2a271ff8514ff5448e1c164ab59762e (diff)
downloadnixos-3058034f82ba38314b9f4ce0f9b0055522c44f47.tar
nixos-3058034f82ba38314b9f4ce0f9b0055522c44f47.tar.gz
nixos-3058034f82ba38314b9f4ce0f9b0055522c44f47.tar.bz2
nixos-3058034f82ba38314b9f4ce0f9b0055522c44f47.tar.xz
nixos-3058034f82ba38314b9f4ce0f9b0055522c44f47.zip
fix user-profiles
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 83f92ac6..52d4026d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -79,7 +79,7 @@
79 (inputs: inputs // { inherit userName; }) 79 (inputs: inputs // { inherit userName; })
80 (outputs: { _file = dir + "/${path}"; } 80 (outputs: { _file = dir + "/${path}"; }
81 // outputs 81 // outputs
82 // { imports = [self.nixosModules.userProfiles.${userName}.core] ++ (outputs.imports or []); }); 82 // { imports = defaultUserProfiles userName ++ (outputs.imports or []); });
83 83
84 mkUserProfile = userName: dir: path: profileName: 84 mkUserProfile = userName: dir: path: profileName:
85 let 85 let
@@ -102,7 +102,7 @@
102 (inputs: inputs // { inherit userName; }) 102 (inputs: inputs // { inherit userName; })
103 (outputs: { _file = dir + "/${path}"; } 103 (outputs: { _file = dir + "/${path}"; }
104 // outputs 104 // outputs
105 // { imports = defaultUserProfiles userName ++ (outputs.imports or []); }); 105 // { imports = [self.nixosModules.users.${userName} or ({...}: { imports = defaultUserProfiles userName; })] ++ (outputs.imports or []); });
106 106
107 forAllSystems = f: mapAttrs f nixpkgs.legacyPackages; 107 forAllSystems = f: mapAttrs f nixpkgs.legacyPackages;
108 forAllUsers = genAttrs (unique (map accountUserName (attrNames self.nixosModules.accounts))); 108 forAllUsers = genAttrs (unique (map accountUserName (attrNames self.nixosModules.accounts)));