Test
This commit is contained in:
parent
7a9536c5b0
commit
3a6344834c
1 changed files with 23 additions and 0 deletions
|
@ -9,12 +9,35 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultWindowManager = "${pkgs.gnome.gnome-session}/bin/gnome-session";
|
defaultWindowManager = "${pkgs.gnome.gnome-session}/bin/gnome-session";
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
# confDir = "/etc/xrdp/conf";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.xrdp
|
||||||
|
];
|
||||||
|
|
||||||
# XRDP needs IPv6 disabled to function.
|
# XRDP needs IPv6 disabled to function.
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv6.conf.enp0s13f0u1.disable_ipv6" = true;
|
"net.ipv6.conf.enp0s13f0u1.disable_ipv6" = true;
|
||||||
"net.ipv6.conf.all.disable_ipv6" = true;
|
"net.ipv6.conf.all.disable_ipv6" = true;
|
||||||
"net.ipv6.conf.wlp170s0.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