1
0
Fork 0

Dimaga: disable suspend signal when Gnome is installed

This commit is contained in:
Aires 2024-08-24 11:44:41 -04:00
parent 16b2126033
commit 0f1bda9859

View file

@ -1,4 +1,9 @@
{ config, pkgs, ... }: {
config,
lib,
pkgs,
...
}:
let let
# Do not change this value! This tracks when NixOS was installed on your system. # Do not change this value! This tracks when NixOS was installed on your system.
@ -43,9 +48,12 @@ in
hibernate.enable = false; hibernate.enable = false;
hybrid-sleep.enable = false; hybrid-sleep.enable = false;
}; };
services.logind = { services = {
lidSwitch = "lock"; xserver.displayManager.gdm.autoSuspend = lib.mkIf config.aux.system.ui.desktops.gnome.enable false;
lidSwitchDocked = "lock"; logind = {
lidSwitch = "lock";
lidSwitchDocked = "lock";
};
}; };
services.upower.ignoreLid = true; services.upower.ignoreLid = true;