mirror of
https://github.com/ItsDrike/nixdots
synced 2025-04-19 22:12:28 +00:00
Compare commits
2 commits
953589075e
...
f12f74f77a
Author | SHA1 | Date | |
---|---|---|---|
f12f74f77a | |||
77984ef59e |
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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}"];
|
||||
|
|
Loading…
Add table
Reference in a new issue