From d348fb80322b00cb799b88ea780811e70bbab379 Mon Sep 17 00:00:00 2001 From: jasmine Date: Sat, 30 Nov 2024 21:38:35 +0800 Subject: [PATCH] setup scanner --- nixos/common/users/sajenim/default.nix | 2 +- nixos/fuchsia/services/printers/default.nix | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/common/users/sajenim/default.nix b/nixos/common/users/sajenim/default.nix index 8a0d88c..220490a 100644 --- a/nixos/common/users/sajenim/default.nix +++ b/nixos/common/users/sajenim/default.nix @@ -11,7 +11,7 @@ users.users.sajenim = { isNormalUser = true; - extraGroups = ["audio" "docker" "networkmanager" "wheel" "adbusers"]; + extraGroups = ["audio" "docker" "networkmanager" "wheel" "adbusers" "scanner" "lp"]; shell = pkgs.zsh; openssh.authorizedKeys.keyFiles = [ "${inputs.self}/home-manager/sajenim/sajenim_sk.pub" diff --git a/nixos/fuchsia/services/printers/default.nix b/nixos/fuchsia/services/printers/default.nix index e567068..6e69f72 100644 --- a/nixos/fuchsia/services/printers/default.nix +++ b/nixos/fuchsia/services/printers/default.nix @@ -39,4 +39,9 @@ (pkgs.callPackage ./lw5xl.nix {}) ]; }; + + hardware.sane = { + enable = true; + extraBackends = [pkgs.hplipWithPlugin]; + }; }