diff --git a/hosts/common/system/configs/printing/default.nix b/hosts/common/system/configs/printing/default.nix new file mode 100644 index 0000000..53d9d71 --- /dev/null +++ b/hosts/common/system/configs/printing/default.nix @@ -0,0 +1,25 @@ +{ pkgs, ... }: +{ + services = { + printing = { + enable = true; + openFirewall = true; + drivers = with pkgs; [ + epson-escpr # Greece, Athens, Home + ]; + }; + + avahi = { + enable = true; + nssmdns4 = true; + ipv6 = true; + nssmdns6 = true; + openFirewall = true; + }; + }; + + environment.persistence."/persist" = { + directories = [ "/var/lib/cups/ppd" ]; + files = [ "/var/lib/cups/printers.conf" ]; + }; +} diff --git a/hosts/eirene/default.nix b/hosts/eirene/default.nix index cff5147..893152b 100644 --- a/hosts/eirene/default.nix +++ b/hosts/eirene/default.nix @@ -19,6 +19,7 @@ ../common/system/configs/ntp ../common/system/configs/pipewire ../common/system/configs/plymouth + ../common/system/configs/printing ../common/system/configs/ranger ../common/system/configs/sops ../common/system/configs/ssh