Merge pull request #73614 from roberth/nixos-typed-ids
nixos/ids: Add types to allow overrides on static uids, gids
commit01037b305caf5b54f27550d81b13f77bf0d49033
authorSilvan Mosberger <contact@infinisil.com>
dateMon 18 Nov 2019, 16:38 (7 years ago)
parent823852af074bfe
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 };