home: add user descriptions
This commit is contained in:
parent
657c50c44d
commit
3a674d95d7
2 changed files with 18 additions and 2 deletions
|
@ -13,6 +13,11 @@ in {
|
|||
default = null;
|
||||
description = "uid passthrough to base user configuration";
|
||||
};
|
||||
description = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = "description passthrough to base user configuration";
|
||||
};
|
||||
admin = mkOption {
|
||||
type = with types; bool;
|
||||
default = false;
|
||||
|
@ -61,6 +66,7 @@ in {
|
|||
users = {
|
||||
users = mapAttrs (name: opts: {
|
||||
inherit (opts) uid;
|
||||
description = with opts; mkIf (description != null) description;
|
||||
extraGroups = mkIf opts.admin cfg.adminGroups;
|
||||
openssh.authorizedKeys.keys = mkIf (opts.sshLogin && config.services.openssh.enable)
|
||||
config.faucet.auth.openssh.publicKeys;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue