From 55dac5b5c83d7c951edb66437d42e7a36c98e1eb Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 24 Jan 2025 14:07:07 +0000 Subject: [PATCH] fix saned subnet ip --- hosts/common/optional/print-server.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/common/optional/print-server.nix b/hosts/common/optional/print-server.nix index beb4c64..9dd2ce8 100644 --- a/hosts/common/optional/print-server.nix +++ b/hosts/common/optional/print-server.nix @@ -1,5 +1,5 @@ {pkgs, configVars, ...}: let - gatewayIp = configVars.networking.addresses.gateway.ip; + subnetIp = configVars.networking.addresses.subnet.ip; in { networking.firewall = { allowedTCPPorts = [631]; @@ -11,7 +11,7 @@ in { ipp-usb.enable = true; saned = { enable = true; - extraConfig = "${gatewayIp}/24"; + extraConfig = "${subnetIp}/24"; }; printing = { enable = true;