summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2019-11-18 16:38:13 +0100
committerGitHub <noreply@github.com>2019-11-18 16:38:13 +0100
commit01037b305caf5b54f27550d81b13f77bf0d49033 (patch)
treeb40ecf3139bde79081ac26fea5922dc9c32ab82e /nixos
parent823852a6a9ca73b05f3b0be98b7b0495b6ab145b (diff)
parentf074bfe0a0e33716f53435d88e6e587e9011b312 (diff)
downloadnixpkgs-01037b305caf5b54f27550d81b13f77bf0d49033.tar
nixpkgs-01037b305caf5b54f27550d81b13f77bf0d49033.tar.gz
nixpkgs-01037b305caf5b54f27550d81b13f77bf0d49033.tar.bz2
nixpkgs-01037b305caf5b54f27550d81b13f77bf0d49033.tar.lz
nixpkgs-01037b305caf5b54f27550d81b13f77bf0d49033.tar.xz
nixpkgs-01037b305caf5b54f27550d81b13f77bf0d49033.tar.zst
nixpkgs-01037b305caf5b54f27550d81b13f77bf0d49033.zip
Merge pull request #73614 from roberth/nixos-typed-ids
nixos/ids: Add types to allow overrides on static uids, gids
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/misc/ids.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix
index a4db2c9d1d8..f8b188e7b1c 100644
--- a/nixos/modules/misc/ids.nix
+++ b/nixos/modules/misc/ids.nix
@@ -11,6 +11,9 @@
 
 { lib, ... }:
 
+let
+  inherit (lib) types;
+in
 {
   options = {
 
@@ -19,6 +22,7 @@
       description = ''
         The user IDs used in NixOS.
       '';
+      type = types.attrsOf types.int;
     };
 
     ids.gids = lib.mkOption {
@@ -26,6 +30,7 @@
       description = ''
         The group IDs used in NixOS.
       '';
+      type = types.attrsOf types.int;
     };
 
   };