summary refs log tree commit diff
path: root/host/Arc/printing.nix
diff options
context:
space:
mode:
Diffstat (limited to 'host/Arc/printing.nix')
-rw-r--r--host/Arc/printing.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/host/Arc/printing.nix b/host/Arc/printing.nix
new file mode 100644

index 0000000..4f86347 --- /dev/null +++ b/host/Arc/printing.nix
@@ -0,0 +1,54 @@ +{ pkgs, ... }: + +{ + imports = [ ]; + + users.users = { + Rory = { + extraGroups = [ + "lp" + "scanner" + ]; + }; + }; + + environment.systemPackages = with pkgs; [ + xsane + simple-scan + ]; + + hardware = { + sane.enable = true; + sane.extraBackends = [ + pkgs.hplipWithPlugin + pkgs.sane-airscan + ]; + }; + + programs.system-config-printer.enable = true; + + services = { + gvfs.enable = true; + saned.enable = true; + system-config-printer.enable = true; + ipp-usb.enable = true; + printing = { + enable = true; + browsing = true; + drivers = with pkgs; [ hplip ]; + }; + avahi = { + enable = true; + nssmdns4 = true; + reflector = true; + publish = { + workstation = true; + userServices = true; + hinfo = true; + enable = true; + domain = true; + addresses = true; + }; + }; + }; +}