diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-02 16:21:34 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-02 16:21:34 +0100 |
commit | 8c946f2d3b36c8e34c1fba4df314f03b74d25a34 (patch) | |
tree | 30c6e81af8fbfc1473a3eeadf02542680437188e /user-profiles | |
parent | ee48cee0393d20c5d1121675288e041834a9285c (diff) | |
download | nixos-8c946f2d3b36c8e34c1fba4df314f03b74d25a34.tar nixos-8c946f2d3b36c8e34c1fba4df314f03b74d25a34.tar.gz nixos-8c946f2d3b36c8e34c1fba4df314f03b74d25a34.tar.bz2 nixos-8c946f2d3b36c8e34c1fba4df314f03b74d25a34.tar.xz nixos-8c946f2d3b36c8e34c1fba4df314f03b74d25a34.zip |
fix user-profiles
Diffstat (limited to 'user-profiles')
-rw-r--r-- | user-profiles/core.nix | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/user-profiles/core.nix b/user-profiles/core.nix index 6f473b1a..91685611 100644 --- a/user-profiles/core.nix +++ b/user-profiles/core.nix | |||
@@ -1,26 +1,8 @@ | |||
1 | { flake, userName, lib, customUtils, ... }: | 1 | { userName, ... }: |
2 | let | 2 | { |
3 | userProfileSet = customUtils.types.attrNameSet (lib.zipAttrs (lib.attrValues flake.nixosModules.userProfiles)); | 3 | users.users.${userName} = {}; # Just make sure the user is created |
4 | in { | ||
5 | options = { | ||
6 | users.users = lib.mkOption { | ||
7 | type = lib.types.attrsOf (lib.types.submodule { | ||
8 | options.profiles = lib.mkOption { | ||
9 | type = userProfileSet; | ||
10 | default = []; | ||
11 | description = '' | ||
12 | Set (list without duplicates) of ‘userProfiles’ enabled for this user | ||
13 | ''; | ||
14 | }; | ||
15 | }); | ||
16 | }; | ||
17 | }; | ||
18 | |||
19 | config = { | ||
20 | users.users.${userName} = {}; # Just make sure the user is created | ||
21 | 4 | ||
22 | home-manager.users.${userName} = { | 5 | home-manager.users.${userName} = { |
23 | manual.manpages.enable = true; | 6 | manual.manpages.enable = true; |
24 | }; | ||
25 | }; | 7 | }; |
26 | } | 8 | } |