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 + ]; +}