nixos/ids: Add types to allow overrides on static uids, gids
commitf074bfe0a0e33716f53435d88e6e587e9011b312
authorRobert Hensing <robert@roberthensing.nl>
dateMon 18 Nov 2019, 09:08 (7 years ago)
parent204bce4
nixos/modules/misc/ids.nix+5
@@ -11,6 +11,9 @@
1111
1212{ lib, ... }:
1313
14+let
15+ inherit (lib) types;
16+in
1417{
1518 options = {
1619
@@ -19,6 +22,7 @@
1922 description = ''
2023 The user IDs used in NixOS.
2124 '';
25+ type = types.attrsOf types.int;
2226 };
2327
2428 ids.gids = lib.mkOption {
@@ -26,6 +30,7 @@
2630 description = ''
2731 The group IDs used in NixOS.
2832 '';
33+ type = types.attrsOf types.int;
2934 };
3035
3136 };