Compare commits

...

2 commits

2 changed files with 5 additions and 2 deletions

View file

@ -12,7 +12,7 @@ in {
# it's about power management # it's about power management
services.logind = { services.logind = {
lidSwitch = "suspend-then-hibernate"; lidSwitch = "suspend-then-hibernate";
lidSwitchExternalPower = "lock"; lidSwitchExternalPower = "suspend";
extraConfig = '' extraConfig = ''
HandlePowerKey=suspend-then-hibernate HandlePowerKey=suspend-then-hibernate
HibernateDelaySec=3600 HibernateDelaySec=3600

View file

@ -36,7 +36,10 @@ in {
myOptions.system.impermanence.home.extraDirectories = optional cfg.hplip.enable ".hplip"; myOptions.system.impermanence.home.extraDirectories = optional cfg.hplip.enable ".hplip";
# Support for SANE (Scanner Access Now Easy) scanners # 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.scanner.members = ["${cfgUser}"];
users.extraGroups.lp.members = ["${cfgUser}"]; users.extraGroups.lp.members = ["${cfgUser}"];