From a4e351115494ca96f941a9819c45c9935d769539 Mon Sep 17 00:00:00 2001 From: xezo360hye Date: Thu, 15 Aug 2024 00:31:46 +0300 Subject: [PATCH] feat(system): add printer and scanner support by default --- system/common.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/common.nix b/system/common.nix index cf7c5ac..a62d1b9 100644 --- a/system/common.nix +++ b/system/common.nix @@ -60,12 +60,18 @@ in users.users.andrey = { isNormalUser = true; initialHashedPassword = "$y$j9T$mGZT4otEkrc94e.Ile.P20$BoxfgxCiacs.tYoEp7S5AjcP.aMUBrsaCJYJkBot635"; - extraGroups = [ "wheel" "cdrom" "networkmanager" "audio" "dialout" ]; + extraGroups = [ "wheel" "cdrom" "networkmanager" "audio" "dialout" "scanner" "lp" ]; }; security.sudo.execWheelOnly = true; security.sudo.wheelNeedsPassword = false; + + # Printers and scanners + hardware.sane.enable = true; + services.printing.enable = true; + services.printing.drivers = [ pkgs.cnijfilter2 ]; + programs.system-config-printer.enable = true; # Programs programs = {