Allow changing the user description

This commit is contained in:
Benjamin Bädorf 2021-11-17 12:05:50 +01:00
parent 0768353f08
commit 91163d38ed
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
2 changed files with 6 additions and 1 deletions

View file

@ -11,6 +11,11 @@ in
type = types.nullOr types.str;
default = "nixos";
};
description = mkOption {
description = "User description";
type = types.nullOr types.str;
default = "The main PubSolarOS user";
};
password = mkOption {
description = "User password";
type = types.nullOr types.str;

View file

@ -15,7 +15,7 @@ in
# This automatically sets group to users, createHome to true,
# home to /home/username, useDefaultShell to true, and isSystemUser to false.
isNormalUser = true;
description = "";
description = psCfg.user.description;
extraGroups = [ "wheel" "docker" "input" "audio" "networkmanager" "lp" "scanner" ];
initialHashedPassword = if psCfg.user.password != null then psCfg.user.password else "";
shell = pkgs.zsh;