From a329763cba72f58d671256b878272272f325a12a Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 6 Aug 2024 12:38:20 -0500 Subject: [PATCH] enable sane for scanning --- hosts/othalan/system.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/othalan/system.nix b/hosts/othalan/system.nix index 5e7e2a7..532ba40 100644 --- a/hosts/othalan/system.nix +++ b/hosts/othalan/system.nix @@ -1,12 +1,17 @@ { pkgs, enabled, ... }: { networking.networkmanager = enabled; - services.printing = enabled; services.fwupd = enabled; hardware.bluetooth = enabled // { powerOnBoot = true; }; + services.printing = enabled; + hardware.sane = enabled // { + extraBackends = [ pkgs.hplipWithPlugin ]; + }; + users.users.daylin.extraGroups = ["scanner" "lp"]; + # https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/lenovo/thinkpad/x1/9th-gen/default.nix # https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/common/pc/ssd/default.nix services.fstrim = enabled;