From 416a67b4ea0c01544f8e52ffbdbe07b5a4fd7c1e Mon Sep 17 00:00:00 2001 From: Hunter Date: Tue, 9 Dec 2025 18:49:28 -0500 Subject: [PATCH] root description --- hosts/user-config.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts/user-config.nix b/hosts/user-config.nix index 3f30584..265412a 100644 --- a/hosts/user-config.nix +++ b/hosts/user-config.nix @@ -3,7 +3,7 @@ let userSubmodule = lib.types.submodule { options = { isNormalUser = lib.mkOption { type = lib.types.bool; default = true; }; - description = lib.mkOption { type = lib.types.str; default = ""; }; + description = lib.mkOption { type = lib.types.nullOr lib.types.str; default = null; }; extraGroups = lib.mkOption { type = lib.types.listOf lib.types.str; default = []; }; hashedPassword = lib.mkOption { type = lib.types.str; default = "!"; }; extraPackages = lib.mkOption { type = lib.types.listOf lib.types.package; default = []; }; @@ -49,7 +49,9 @@ in finalPackages = lib.subtractLists user.excludePackages (defaultPackages ++ user.extraPackages); in { - inherit (user) isNormalUser description extraGroups hashedPassword; + inherit (user) isNormalUser extraGroups hashedPassword; + description = if user.description != null then user.description else lib.mkDefault ""; + openssh.authorizedKeys.keys = user.opensshKeys; packages = finalPackages; shell = config.modules.users.shell; }