refactoring to more granular flakes and modules
This commit is contained in:
parent
6570da6f33
commit
50825c9b84
52 changed files with 2501 additions and 9 deletions
11
flakes/common/nix_modules/no_sleep.nix
Normal file
11
flakes/common/nix_modules/no_sleep.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
# Turn off sleep
|
||||
systemd.sleep.extraConfig = ''
|
||||
[Sleep]
|
||||
AllowSuspend=no
|
||||
AllowHibernation=no
|
||||
AllowSuspendThenHibernate=no
|
||||
AllowHybridSleep=no
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue