summary refs log tree commit diff
diff options
context:
space:
mode:
authorArthur Gautier <baloo@superbaloo.net>2023-07-14 20:52:48 +0000
committerArthur Gautier <baloo@superbaloo.net>2023-07-14 20:52:48 +0000
commitee38adc8e2fa43ab2f8553cf47205ff750c81abf (patch)
tree02122497dc286ab9adb0a84ebb5ab48068689aab
parentc8920fc6d989807ccb3ba577c6a3e6d0b7258f17 (diff)
downloadnixpkgs-ee38adc8e2fa43ab2f8553cf47205ff750c81abf.tar
nixpkgs-ee38adc8e2fa43ab2f8553cf47205ff750c81abf.tar.gz
nixpkgs-ee38adc8e2fa43ab2f8553cf47205ff750c81abf.tar.bz2
nixpkgs-ee38adc8e2fa43ab2f8553cf47205ff750c81abf.tar.lz
nixpkgs-ee38adc8e2fa43ab2f8553cf47205ff750c81abf.tar.xz
nixpkgs-ee38adc8e2fa43ab2f8553cf47205ff750c81abf.tar.zst
nixpkgs-ee38adc8e2fa43ab2f8553cf47205ff750c81abf.zip
keepalived: use `ints.between`
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
-rw-r--r--nixos/modules/services/networking/keepalived/vrrp-instance-options.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/keepalived/vrrp-instance-options.nix b/nixos/modules/services/networking/keepalived/vrrp-instance-options.nix
index 5d69963d204..35401d439a9 100644
--- a/nixos/modules/services/networking/keepalived/vrrp-instance-options.nix
+++ b/nixos/modules/services/networking/keepalived/vrrp-instance-options.nix
@@ -22,7 +22,7 @@ with lib;
     };
 
     virtualRouterId = mkOption {
-      type = types.int;
+      type = types.ints.between 1 255;
       description = lib.mdDoc ''
         Arbitrary unique number 1..255. Used to differentiate multiple instances
         of vrrpd running on the same NIC (and hence same socket).