diff --git a/modules/nixos/users.nix b/modules/nixos/users.nix index 2447afe..bc0225c 100644 --- a/modules/nixos/users.nix +++ b/modules/nixos/users.nix @@ -3,7 +3,7 @@ options = { nixos.users.users = lib.mkOption { type = lib.types.attrsOf ( - lib.types.submodule { + lib.types.submodule ({name, ...}: { options = { description = lib.mkOption { type = lib.types.str; }; createHome = lib.mkOption { type = lib.types.bool; }; @@ -22,8 +22,13 @@ type = lib.types.bool; default = false; }; + name = lib.mkOption { + type = lib.types.str; + default = name; + readOnly = true; + }; }; - } + }) ); default = { }; };