From 0a686597faa81831e027505b149dd77b2524ab18 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Tue, 22 Oct 2024 19:49:13 +1100 Subject: [PATCH] users: don't allow `name` to be empty --- modules/users/user.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/users/user.nix b/modules/users/user.nix index 1a8e877f..a0c8aab5 100644 --- a/modules/users/user.nix +++ b/modules/users/user.nix @@ -5,7 +5,7 @@ inherit (lib) literalExpression mkOption types; in { name = mkOption { - type = types.str; + type = types.nonEmptyStr; default = name; description = '' The name of the user account. If undefined, the name of the