From d30e35cd8f366c6c138a81f9d84f9ffb3c099967 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sat, 13 Jan 2024 16:38:40 +0100 Subject: [PATCH] tomate: fix printing --- hosts/tomate/configuration.nix | 36 ++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/hosts/tomate/configuration.nix b/hosts/tomate/configuration.nix index ab12788..e2bea0d 100644 --- a/hosts/tomate/configuration.nix +++ b/hosts/tomate/configuration.nix @@ -60,22 +60,28 @@ # Configure console keymap console.keyMap = "de"; - # Enable CUPS to print documents. - services.printing.enable = true; - services.printing.defaultShared = true; - services.printing.browsing = true; - # sollte auf nur fsr netz beschränkt werden sobald die tomate mal nach außen zeigt - services.printing.allowFrom = [ "all" ]; - # services.avahi = { - # enable = true; - # nssmdns = true; - # openFirewall = true; - # publish = { - # enable = true; - # userServices = true; - # }; - # }; + + services.printing = { + enable = true; + stateless = true; + drivers = with pkgs; [ cups-kyocera ]; + browsing = true; + defaultShared = true; + # todo fix + allowFrom = [ "all" ]; + listenAddresses = [ "0.0.0.0:631" ]; + }; + + services.avahi = { + enable = true; + nssmdns = true; + openFirewall = true; + publish = { + enable = true; + userServices = true; + }; + }; networking.firewall = { allowedTCPPorts = [ 631 ]; allowedUDPPorts = [ 631 ];