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,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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue