Add givenName & surname
This commit is contained in:
parent
cea913f1fe
commit
dbf6cd6337
@ -1,7 +1,6 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib; rec {
|
||||||
rec {
|
|
||||||
systemUserOpts = { name, ... }: {
|
systemUserOpts = { name, ... }: {
|
||||||
options = with lib.types; {
|
options = with lib.types; {
|
||||||
username = mkOption {
|
username = mkOption {
|
||||||
@ -23,8 +22,8 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
userOpts = { name, ... }: let
|
userOpts = { name, ... }:
|
||||||
username = name;
|
let username = name;
|
||||||
in {
|
in {
|
||||||
options = with lib.types; {
|
options = with lib.types; {
|
||||||
username = mkOption {
|
username = mkOption {
|
||||||
@ -108,6 +107,18 @@ rec {
|
|||||||
description = "Email aliases that should map to this user.";
|
description = "Email aliases that should map to this user.";
|
||||||
default = [ ];
|
default = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
given-name = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
description = "User's given name.";
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
surname = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
description = "User's surname.";
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user