From 0bd0df452d06c3d106a4f97152161fafa4924827 Mon Sep 17 00:00:00 2001 From: Kirill Date: Thu, 28 May 2026 16:32:53 +0300 Subject: [PATCH] feat(Printing): Add module for printing --- host/WhiteRaven/configuration.nix | 1 + modules/host/printing.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 modules/host/printing.nix diff --git a/host/WhiteRaven/configuration.nix b/host/WhiteRaven/configuration.nix index e1bf437..2c32b6b 100644 --- a/host/WhiteRaven/configuration.nix +++ b/host/WhiteRaven/configuration.nix @@ -26,4 +26,5 @@ ]; hardware.bluetooth.enable = true; + services.printing.enable = true; } diff --git a/modules/host/printing.nix b/modules/host/printing.nix new file mode 100644 index 0000000..67e9cf6 --- /dev/null +++ b/modules/host/printing.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +lib.mkIf config.services.printing.enable { + services = { + printing.drivers = with pkgs; [ + brlaser + ]; + + avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + }; + + hardware.sane = { + enable = true; + extraBackends = with pkgs; [ sane-airscan ]; + }; + + environment.systemPackages = with pkgs; [ + sane-frontends + simple-scan + ]; +}