summaryrefslogtreecommitdiff
path: root/sys/users.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-01-09 20:49:54 -0600
committerAlejandro Soto <alejandro@34project.org>2023-01-09 20:49:54 -0600
commit01f4dca86a03cf3d9b38a458a00cd1f8ad1234e3 (patch)
treef53ed10835438359b8b1271aa7cdb6d686cb6edc /sys/users.nix
parent74757f896057a61b75d87ee240bbec6e04b2ae61 (diff)
env/users: add gecos field
Diffstat (limited to 'sys/users.nix')
-rw-r--r--sys/users.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/users.nix b/sys/users.nix
index 095c6d3..b84d1c0 100644
--- a/sys/users.nix
+++ b/sys/users.nix
@@ -27,10 +27,14 @@ in
users.users = mapAttrs
(username: user: {
- inherit (user) uid;
isNormalUser = true;
+
+ inherit (user) uid;
+ description = user.gecos;
+
group = username;
extraGroups = [ "users" ] ++ user.groups;
+
shell = if user.allowLogin then pkgs.zsh else null;
})
cfg.users;