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;