diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-02 16:21:34 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 20:18:01 +0100 |
commit | 3058034f82ba38314b9f4ce0f9b0055522c44f47 (patch) | |
tree | 21433e0429621fccd7b6817d101cf28b5ed7fe9d /flake.nix | |
parent | b6e44495b2a271ff8514ff5448e1c164ab59762e (diff) | |
download | nixos-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.nix | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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))); |