From 1af7422dc72136047d461fe2067cf3774849e726 Mon Sep 17 00:00:00 2001 From: fredrikr79 Date: Sat, 15 Feb 2025 11:15:48 +0100 Subject: [PATCH] try to change xrdp.ini --- configuration.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/configuration.nix b/configuration.nix index 5580072..fcb84c9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -477,5 +477,49 @@ in { enable = true; defaultWindowManager = "xmonad"; }; + + environment.etc."xrdp/xrdp.ini".text = '' + [Globals] + ini_version=1 + fork=true + port=3389 + use_vsock=false + tcp_nodelay=true + tcp_keepalive=true + security_layer=negotiate + crypt_level=high + certificate=/etc/xrdp/cert.pem + key_file=/etc/xrdp/key.pem + rsakeys_ini=/run/xrdp/rsakeys.ini + ssl_protocols=TLSv1.2, TLSv1.3 + allow_channels=true + allow_multimon=true + bitmap_cache=true + bitmap_compression=true + bulk_compression=true + max_bpp=32 + new_cursors=true + use_fastpath=both + grey=e1e1e1 + dark_grey=b4b4b4 + blue=0078d7 + dark_blue=0078d7 + + [Xorg] + name=Xorg + lib=libxup.so + username=ask + password=ask + port=ask + code=20 + + [xrdp1] + name=test + lib=libvnc.so + username=ask + password=ask + ip=127.0.0.1 + port=5912 + ''; }