diff --git a/nixos/modules/printing.nix b/nixos/modules/printing.nix index 61a5f3c..25dd0e2 100755 --- a/nixos/modules/printing.nix +++ b/nixos/modules/printing.nix @@ -13,13 +13,20 @@ { name = "Brother-HL-2170W"; location = "Upstairs"; - deviceUri = "https://10.0.0.97"; + deviceUri = "https://192.168.50.195"; model = "drv:///sample.drv/generic.ppd"; ppdOptions = { PageSize = "Letter"; }; } ]; - ensureDefaultPrinter = "Canon-TR7620a"; + ensureDefaultPrinter = "Brother-HL-2170W"; + }; + networking = { + firewall = { + allowedTCPPorts = [ + 631 + ]; + }; }; }