From 2bc9fb6a0b90d04edc3e58940a78f3c04371a476 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 28 Jun 2026 07:40:05 +0200 Subject: feat: set up printer --- nixos/hosts/ev/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'nixos/hosts/ev') diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix index 7fcc724..9aa785c 100644 --- a/nixos/hosts/ev/default.nix +++ b/nixos/hosts/ev/default.nix @@ -193,6 +193,26 @@ in musicDir = "/mnt/personal/music"; }; + services.printing = { + enable = true; + listenAddresses = ["*:631"]; + allowFrom = ["all"]; + }; + hardware.printers = { + ensurePrinters = [ + { + name = "Brother"; + description = "Brother HL-L2340D series"; + deviceUri = "ipp://192.168.178.3/ipp/print"; + model = "everywhere"; # IPP Everywhere - no driver needed + ppdOptions = { + PageSize = "A4"; + }; + } + ]; + ensureDefaultPrinter = "Brother"; + }; + qbittorrent = { user = "library"; webUiPort = ports.qbittorrent; -- cgit v1.3.1