From fb9005e86f9b367aa9a32ef10c582c8b4b521e4a Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 5 Dec 2023 20:37:04 +0900 Subject: [PATCH] test --- nixos/hosts/framework-server/rdesktop.nix | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) 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