File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 33 options = {
44 nixos . users . users = lib . mkOption {
55 type = lib . types . attrsOf (
6- lib . types . submodule {
6+ lib . types . submodule ( { name , ... } : {
77 options = {
88 description = lib . mkOption { type = lib . types . str ; } ;
99 createHome = lib . mkOption { type = lib . types . bool ; } ;
2222 type = lib . types . bool ;
2323 default = false ;
2424 } ;
25+ name = lib . mkOption {
26+ type = lib . types . str ;
27+ default = name ;
28+ readOnly = true ;
29+ } ;
2530 } ;
26- }
31+ } )
2732 ) ;
2833 default = { } ;
2934 } ;
3843 config = {
3944 users . users =
4045 ( lib . mapAttrs (
41- _ : v : lib . filterAttrs ( n : _ : ! lib . elem n [ "isSystemUser" ] ) v
46+ _ : v : lib . filterAttrs ( n : _ : ! lib . elem n [ "name" " isSystemUser" ] ) v
4247 ) config . nixos . users . users ) ;
4348 users . groups = config . nixos . users . groups ;
4449 } ;
You can’t perform that action at this time.
0 commit comments