Skip to content

Commit 5f7d925

Browse files
committed
snapshot
1 parent bad2cbc commit 5f7d925

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

home/linux/gui/gnome-wayland/values/gnome.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,18 @@ in
3434
"xwayland-native-scaling" # Scales Xwayland applications to look crisp on HiDPI screens
3535
];
3636
};
37+
38+
# 设置 GNOME Remote Desktop RDP 端口为 23389,并允许在占用时向后搜索 10 个端口
39+
settings."org/gnome/desktop/remote-desktop/rdp" = {
40+
# port = 23389; # 目前不知道为什么不起效
41+
# "negotiate-port" = true; # 目前不知道为什么不起效
42+
enable = true;
43+
};
44+
45+
# settings."org/gnome/desktop/remote-desktop/rdp/headless" = {
46+
# port = 23390; # 目前不知道为什么不起效
47+
# "negotiate-port" = true; # 目前不知道为什么不起效
48+
# enable = false;
49+
# };
3750
};
3851
}

modules/nixos/desktop/gnome-wayland/values/official-config.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
systemd.services.gnome-remote-desktop = {
1111
wantedBy = [ "graphical.target" ]; # for starting the unit automatically at boot
1212
};
13-
networking.firewall.allowedTCPPorts = [ 3389 ];
14-
13+
networking.firewall.allowedTCPPorts = (lib.range 3389 3398) ++ (lib.range 23389 23398);
1514
}

0 commit comments

Comments
 (0)