Dimaga: disable suspend signal when Gnome is installed
This commit is contained in:
parent
16b2126033
commit
0f1bda9859
|
@ -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,10 +48,13 @@ in
|
||||||
hibernate.enable = false;
|
hibernate.enable = false;
|
||||||
hybrid-sleep.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";
|
lidSwitch = "lock";
|
||||||
lidSwitchDocked = "lock";
|
lidSwitchDocked = "lock";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
services.upower.ignoreLid = true;
|
services.upower.ignoreLid = true;
|
||||||
|
|
||||||
# Enable support for building ARM64 packages
|
# Enable support for building ARM64 packages
|
||||||
|
|
Loading…
Reference in a new issue