From ce2d635b851643d83cfc19059b56bfb50664b562 Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 18 Aug 2025 23:16:22 -0500 Subject: [PATCH] convention? --- system-config/users/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system-config/users/default.nix b/system-config/users/default.nix index c5a61c9..482c5f1 100644 --- a/system-config/users/default.nix +++ b/system-config/users/default.nix @@ -3,10 +3,11 @@ options.sysconfig = with lib; { users = let - userType = types.submodule ({ username, ... }: { + userType = types.submodule ({ name, ... }: { options = with lib; { username = mkOption { type = with types; passwdEntry str; + default = name; }; home-manager = { @@ -54,7 +55,7 @@ }; config = { - username = lib.mkDefault username; + username = lib.mkDefault name; }; });