This commit is contained in:
iFargle 2023-12-05 20:37:04 +09:00
parent fba98d26af
commit fb9005e86f

View file

@ -7,7 +7,7 @@
services.xrdp = {
enable = true;
defaultWindowManager = "${pkgs.gnome.gnome-session}/bin/gnome-session";
defaultWindowManager = "startxfce4";
openFirewall = true;
# confDir = "/etc/xrdp/conf";
};
@ -22,22 +22,4 @@
"net.ipv6.conf.all.disable_ipv6" = true;
"net.ipv6.conf.wlp170s0.disable_ipv6" = true;
};
# https://nixos.wiki/wiki/Polkit
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (
subject.isInGroup("users")
&& (
action.id == "org.freedesktop.login1.reboot" ||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
action.id == "org.freedesktop.login1.power-off" ||
action.id == "org.freedesktop.login1.power-off-multiple-sessions"
)
)
{
return polkit.Result.YES;
}
})
'';
}