mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-22 17:32:19 +00:00
remove x
This commit is contained in:
parent
f38c89b73d
commit
c385ae26cb
1 changed files with 0 additions and 36 deletions
|
@ -1,36 +0,0 @@
|
||||||
{
|
|
||||||
services = {
|
|
||||||
xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager = {
|
|
||||||
gdm = {
|
|
||||||
enable = true;
|
|
||||||
autoSuspend = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
desktopManager = {
|
|
||||||
gnome.enable = true;
|
|
||||||
};
|
|
||||||
layout = "us";
|
|
||||||
xkbVariant = "";
|
|
||||||
};
|
|
||||||
logind.lidSwitch = "ignore";
|
|
||||||
};
|
|
||||||
security.polkit.extraConfig = ''
|
|
||||||
polkit.addRule(function(action, subject) {
|
|
||||||
if (action.id == "org.freedesktop.login1.suspend" ||
|
|
||||||
action.id == "org.freedesktop.login1.suspend-multiple-sessions" ||
|
|
||||||
action.id == "org.freedesktop.login1.hibernate" ||
|
|
||||||
action.id == "org.freedesktop.login1.hibernate-multiple-sessions")
|
|
||||||
{
|
|
||||||
return polkit.Result.NO;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
'';
|
|
||||||
systemd.targets = {
|
|
||||||
sleep.enable = false;
|
|
||||||
suspend.enable = false;
|
|
||||||
hibernate.enable = false;
|
|
||||||
hybrid-sleep.enable = false;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue