Created
October 2, 2018 15:32
-
-
Save peti/304a14130d562602c1ffa9128543bf38 to your computer and use it in GitHub Desktop.
Disable GDM's auto-suspension of the machine when no user is logged in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, lib, ... }: # disable-gdm-auto-suspend.nix | |
{ | |
assertions = [ | |
{ assertion = config.services.xserver.displayManager.gdm.enable; | |
message = "dont't include disable-gdm-auto-suspend.nix unless GDM is enabled"; | |
} | |
]; | |
programs.dconf.enable = true; | |
environment.etc."dconf/db/local.d/disable-auto-suspend".text = '' | |
[org/gnome/settings-daemon/plugins/power] | |
power-button-action='nothing' | |
sleep-inactive-battery-type='nothing' | |
sleep-inactive-ac-type='nothing' | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment