forked from pub-solar/os
Allow changing the user description
This commit is contained in:
parent
0768353f08
commit
91163d38ed
|
@ -11,6 +11,11 @@ in
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = "nixos";
|
default = "nixos";
|
||||||
};
|
};
|
||||||
|
description = mkOption {
|
||||||
|
description = "User description";
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = "The main PubSolarOS user";
|
||||||
|
};
|
||||||
password = mkOption {
|
password = mkOption {
|
||||||
description = "User password";
|
description = "User password";
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
|
|
|
@ -15,7 +15,7 @@ in
|
||||||
# This automatically sets group to users, createHome to true,
|
# This automatically sets group to users, createHome to true,
|
||||||
# home to /home/username, useDefaultShell to true, and isSystemUser to false.
|
# home to /home/username, useDefaultShell to true, and isSystemUser to false.
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "";
|
description = psCfg.user.description;
|
||||||
extraGroups = [ "wheel" "docker" "input" "audio" "networkmanager" "lp" "scanner" ];
|
extraGroups = [ "wheel" "docker" "input" "audio" "networkmanager" "lp" "scanner" ];
|
||||||
initialHashedPassword = if psCfg.user.password != null then psCfg.user.password else "";
|
initialHashedPassword = if psCfg.user.password != null then psCfg.user.password else "";
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
|
|
Loading…
Reference in a new issue