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
# Do not change this value! This tracks when NixOS was installed on your system.
@ -43,10 +48,13 @@ in
hibernate.enable = false;
hybrid-sleep.enable = false;
};
services.logind = {
services = {
xserver.displayManager.gdm.autoSuspend = lib.mkIf config.aux.system.ui.desktops.gnome.enable false;
logind = {
lidSwitch = "lock";
lidSwitchDocked = "lock";
};
};
services.upower.ignoreLid = true;
# Enable support for building ARM64 packages