Allow changing the user description

This commit is contained in:
Benjamin Bädorf 2021-11-17 12:05:50 +01:00
parent 6c9ab61065
commit cfe5d77f9e
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; 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;

View file

@ -12,7 +12,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 = "The main PubSolarOS user"; 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;