diff --git a/nixos/hosts/framework-server/rdesktop.nix b/nixos/hosts/framework-server/rdesktop.nix index 2e835f66..db39f4b9 100644 --- a/nixos/hosts/framework-server/rdesktop.nix +++ b/nixos/hosts/framework-server/rdesktop.nix @@ -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; - } - }) - ''; } \ No newline at end of file