1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-16 21:38:21 +00:00

users: don't allow name to be empty

This commit is contained in:
Michael Hoang 2024-10-22 19:49:13 +11:00
parent 11c777c719
commit 0a686597fa

View file

@ -5,7 +5,7 @@
inherit (lib) literalExpression mkOption types; inherit (lib) literalExpression mkOption types;
in { in {
name = mkOption { name = mkOption {
type = types.str; type = types.nonEmptyStr;
default = name; default = name;
description = '' description = ''
The name of the user account. If undefined, the name of the The name of the user account. If undefined, the name of the