test
This commit is contained in:
parent
fba98d26af
commit
fb9005e86f
1 changed files with 1 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
})
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue