From c3f12a320c7e7262bc00999b5d62f6f257b8eb67 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 9 Jun 2024 12:28:09 +0200 Subject: Bunch of changes --- host/Rory-desktop/printing.nix | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 host/Rory-desktop/printing.nix (limited to 'host/Rory-desktop/printing.nix') diff --git a/host/Rory-desktop/printing.nix b/host/Rory-desktop/printing.nix new file mode 100644 index 0000000..fd33aaa --- /dev/null +++ b/host/Rory-desktop/printing.nix @@ -0,0 +1,51 @@ +{ config, pkgs, lib, ... }: + +{ + imports = [ ]; + + users.users = { + Rory = { + extraGroups = [ "lp" "scanner" ]; + }; + }; + + environment.systemPackages = with pkgs; [ + xsane + gnome.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; + nssmdns = true; + reflector = true; + publish = { + workstation = true; + userServices = true; + hinfo = true; + enable = true; + domain = true; + addresses = true; + }; + }; + }; + + system.stateVersion = "22.11"; # DO NOT EDIT! +} + -- cgit 1.4.1