From 2b075e121e2426d2abfdf8163d282e5b640c9e84 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 22 Sep 2025 16:04:31 +0200 Subject: [PATCH] nixos/cachix-watch-store: use more accurate int types --- nixos/modules/services/system/cachix-watch-store.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/system/cachix-watch-store.nix b/nixos/modules/services/system/cachix-watch-store.nix index 0df74b927afa..b30a57cd4926 100644 --- a/nixos/modules/services/system/cachix-watch-store.nix +++ b/nixos/modules/services/system/cachix-watch-store.nix @@ -36,13 +36,13 @@ in }; compressionLevel = lib.mkOption { - type = lib.types.nullOr lib.types.int; + type = lib.types.nullOr (lib.types.ints.between 0 16); description = "The compression level for ZSTD compression (between 0 and 16)"; default = null; }; jobs = lib.mkOption { - type = lib.types.nullOr lib.types.int; + type = lib.types.nullOr lib.types.ints.positive; description = "Number of threads used for pushing store paths"; default = null; };