From ed3dde6c28707f83e21ac1e07f39d82929f1246e Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 6 Feb 2025 15:21:22 +0100 Subject: [PATCH] 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. --- modules/options/homeVars.nix | 2 +- modules/options/systemVars.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/options/homeVars.nix b/modules/options/homeVars.nix index 23e16f6..9942d30 100644 --- a/modules/options/homeVars.nix +++ b/modules/options/homeVars.nix @@ -11,7 +11,7 @@ in { fullName = mkOption { type = str; description = "your full name (used for git commits and user description)"; - default = null; + default = "User"; }; email = mkOption { type = str; diff --git a/modules/options/systemVars.nix b/modules/options/systemVars.nix index b4aad13..db75ccd 100644 --- a/modules/options/systemVars.nix +++ b/modules/options/systemVars.nix @@ -15,7 +15,7 @@ in { username = mkOption { type = str; description = "username for the home directory"; - default = null; + default = "user"; }; };