File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ # Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
3
+ # If no user is logged in, the machine will power down after 20 minutes.
4
+ systemd . targets . sleep . enable = false ;
5
+ systemd . targets . suspend . enable = false ;
6
+ systemd . targets . hibernate . enable = false ;
7
+ systemd . targets . hybrid-sleep . enable = false ;
8
+ }
Original file line number Diff line number Diff line change 19
19
../../cfg/base-big.nix
20
20
../../cfg/cgit.nix
21
21
../../cfg/clamav.nix
22
+ ../../cfg/disable-suspend.nix
22
23
../../cfg/gitolite.nix
23
24
../../cfg/git-daemon.nix
24
25
../../cfg/backup-server.nix
302
303
} ;
303
304
} ;
304
305
305
- # Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
306
- systemd . targets . sleep . enable = false ;
307
- systemd . targets . suspend . enable = false ;
308
- systemd . targets . hibernate . enable = false ;
309
- systemd . targets . hybrid-sleep . enable = false ;
310
-
311
306
systemd . services . archive-photos-from-syncthing = {
312
307
description = "Archive photos from Syncthing" ;
313
308
startAt = "weekly" ;
You can’t perform that action at this time.
0 commit comments