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