diff --git a/system/roles/workstation/services/logind.nix b/system/roles/workstation/services/logind.nix index 2c20494..b86731a 100644 --- a/system/roles/workstation/services/logind.nix +++ b/system/roles/workstation/services/logind.nix @@ -12,7 +12,7 @@ in { # it's about power management services.logind = { lidSwitch = "suspend-then-hibernate"; - lidSwitchExternalPower = "suspend"; + lidSwitchExternalPower = "lock"; extraConfig = '' HandlePowerKey=suspend-then-hibernate HibernateDelaySec=3600 diff --git a/system/roles/workstation/services/printing.nix b/system/roles/workstation/services/printing.nix index fd785d5..bb3a496 100644 --- a/system/roles/workstation/services/printing.nix +++ b/system/roles/workstation/services/printing.nix @@ -36,10 +36,7 @@ in { myOptions.system.impermanence.home.extraDirectories = optional cfg.hplip.enable ".hplip"; # Support for SANE (Scanner Access Now Easy) scanners - hardware.sane = { - enable = true; - extraBackends = optional cfg.hplip.enable pkgs.hplipWithPlugin; - }; + hardware.sane.enable = true; users.extraGroups.scanner.members = ["${cfgUser}"]; users.extraGroups.lp.members = ["${cfgUser}"];