options: provide defaults for user and fullName

This fixes users not being present, even on the server. We have to
create a placeholder user, even if we're only going to ssh as root.
This commit is contained in:
Anthony Rodriguez 2025-02-06 15:21:22 +01:00
parent 5e568693f6
commit ed3dde6c28
Signed by: nezia
SSH key fingerprint: SHA256:Ihfpl0rUpqDevYqnzSR34OYfVLbDNkBiUjs3CpX4ykA
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ in {
fullName = mkOption { fullName = mkOption {
type = str; type = str;
description = "your full name (used for git commits and user description)"; description = "your full name (used for git commits and user description)";
default = null; default = "User";
}; };
email = mkOption { email = mkOption {
type = str; type = str;

View file

@ -15,7 +15,7 @@ in {
username = mkOption { username = mkOption {
type = str; type = str;
description = "username for the home directory"; description = "username for the home directory";
default = null; default = "user";
}; };
}; };