File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 534534 in
535535 mkDefault {
536536 HandleLidSwitch = lidEvent ;
537- HandleLidSwitchDocked = lidEvent ;
538- HandleLidSwitchExternalPower = lidEvent ;
537+ HandleLidSwitchDocked = "ignore" ;
538+ HandleLidSwitchExternalPower = "ignore" ;
539+ # Below keys are usually handled by host anyway
539540 HandleSuspendKey = "ignore" ;
540541 HandleHibernateKey = "ignore" ;
541542 HandlePowerKey = "ignore" ;
542543 HandlePowerKeyLongPress = "ignore" ;
543544 KillUserProcesses = true ;
544- IdleAction = "lock" ;
545- IdleActionSec = "10min" ;
546545 UserStopDelaySec = 0 ;
547- HoldoffTimeoutSec = 20 ;
548546 } ;
549547 } )
550548
551549 # Host power management
552550 ( mkIf cfg . host . enable {
553- services . logind . settings . Login . HandleLidSwitch = mkDefault "ignore" ;
551+ # Host still handles power buttons in most situations
552+ services . logind . settings . Login = {
553+ HandleLidSwitch = mkDefault "ignore" ;
554+ # Disable accidental poweroff with light touch
555+ HandlePowerKey = mkDefault "ignore" ;
556+ } ;
554557
555558 # We can accomplish the same via systemd.sleep.extraConfig MemorySleepMode
556559 # but it seems keyboard wakeup stops functioning with that approach
Original file line number Diff line number Diff line change 6767 extraConfig = {
6868 reference . profiles . mvp-user-trial . enable = true ;
6969 partitioning . disko . enable = true ;
70- services . power-manager . allowSuspend = false ;
70+ services . power-manager . suspend . enable = false ;
7171 } ;
7272 } )
7373
117117 extraConfig = {
118118 reference . profiles . mvp-user-trial . enable = true ;
119119 partitioning . disko . enable = true ;
120- profiles . graphics . idleManagement . enable = false ;
121120 services . performance . host . thermalLimitMode = "enabled" ;
122121 } ;
123122 } )
338337 extraConfig = {
339338 reference . profiles . mvp-user-trial . enable = true ;
340339 partitioning . disko . enable = true ;
341- profiles . graphics . idleManagement . enable = false ;
342340 } ;
343341 } )
344342
You can’t perform that action at this time.
0 commit comments