modules/ids: improve error message for non-deterministic IDs
This commit is contained in:
@@ -64,7 +64,7 @@ in
|
|||||||
lib.mapAttrsToList
|
lib.mapAttrsToList
|
||||||
(name: user: {
|
(name: user: {
|
||||||
assertion = user.uid != null;
|
assertion = user.uid != null;
|
||||||
message = "non-deterministic uid detected for: ${name}";
|
message = "non-deterministic uid detected for: ${name}\n please add a mapping in hosts/common/ids.nix";
|
||||||
})
|
})
|
||||||
config.users.users
|
config.users.users
|
||||||
)
|
)
|
||||||
@@ -72,7 +72,7 @@ in
|
|||||||
lib.mapAttrsToList
|
lib.mapAttrsToList
|
||||||
(name: group: {
|
(name: group: {
|
||||||
assertion = group.gid != null;
|
assertion = group.gid != null;
|
||||||
message = "non-deterministic gid detected for: ${name}";
|
message = "non-deterministic gid detected for: ${name}\n please add a mapping in hosts/common/ids.nix";
|
||||||
})
|
})
|
||||||
config.users.groups
|
config.users.groups
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user