From b8c7040e98004c355522db339c6c8172b4f04d30 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 29 Mar 2025 15:24:47 +0100 Subject: modules/constants: Enforce the 0 to 400 limit --- modules/by-name/co/constants/module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/by-name/co/constants/module.nix') diff --git a/modules/by-name/co/constants/module.nix b/modules/by-name/co/constants/module.nix index 54e8d81..67d1601 100644 --- a/modules/by-name/co/constants/module.nix +++ b/modules/by-name/co/constants/module.nix @@ -11,14 +11,14 @@ description = '' The user IDs used in the vhack.eu nixos config. ''; - type = lib.types.attrsOf lib.types.int; + type = lib.types.attrsOf (lib.types.ints.between 0 400); }; ids.gids = lib.mkOption { internal = true; description = '' The group IDs used in the vhack.eu nixos config. ''; - type = lib.types.attrsOf lib.types.int; + type = lib.types.attrsOf (lib.types.ints.between 0 400); }; }; -- cgit 1.4.1