From 44ae5fe2113cd0c279e84d6806a03f3f3797a2b6 Mon Sep 17 00:00:00 2001 From: lucasew Date: Fri, 4 Aug 2023 22:53:43 -0300 Subject: [PATCH] nixos/xrdp: add audio.enable option Signed-off-by: lucasew --- nixos/modules/services/networking/xrdp.nix | 181 +++++++++++++-------- 1 file changed, 112 insertions(+), 69 deletions(-) diff --git a/nixos/modules/services/networking/xrdp.nix b/nixos/modules/services/networking/xrdp.nix index 3b674840b936b..7e6634cd239aa 100644 --- a/nixos/modules/services/networking/xrdp.nix +++ b/nixos/modules/services/networking/xrdp.nix @@ -4,14 +4,17 @@ with lib; let cfg = config.services.xrdp; + confDir = pkgs.runCommand "xrdp.conf" { preferLocalBuild = true; } '' - mkdir $out + mkdir -p $out - cp ${cfg.package}/etc/xrdp/{km-*,xrdp,sesman,xrdp_keyboard}.ini $out + cp -r ${cfg.package}/etc/xrdp/* $out + chmod -R +w $out cat > $out/startwm.sh <