From ccc57277234a69edb46dec07d584447207c0dbef Mon Sep 17 00:00:00 2001 From: chn Date: Mon, 11 Mar 2024 21:59:14 +0800 Subject: [PATCH] try to fix xrdp --- devices/pc/default.nix | 8 +++++++- modules/services/xrdp.nix | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/devices/pc/default.nix b/devices/pc/default.nix index d246a9b1..19ff4379 100644 --- a/devices/pc/default.nix +++ b/devices/pc/default.nix @@ -117,9 +117,15 @@ inputs: }; gamemode = { enable = true; drmDevice = 1; }; slurm = { enable = true; cpu = { cores = 16; threads = 2; }; memoryMB = 94208; gpus."4060" = 1; }; - xrdp = { enable = true; hostname = [ "pc.chn.moe" ]; }; + xrdp = + { + enable = true; + hostname = [ "pc.chn.moe" ]; + # optimise = { type = "nvidia"; nvidiaBusId = "1:0:0"; }; + }; }; bugs = [ "xmunet" "backlight" "amdpstate" ]; + # users.users = [ "chn" "test" ]; }; networking.extraHosts = "74.211.99.69 mirism.one beta.mirism.one ng01.mirism.one"; services.colord.enable = true; diff --git a/modules/services/xrdp.nix b/modules/services/xrdp.nix index 3a5e35cd..1bb42aa1 100644 --- a/modules/services/xrdp.nix +++ b/modules/services/xrdp.nix @@ -44,6 +44,7 @@ inputs: openFirewall = true; defaultWindowManager = "${inputs.pkgs.plasma-workspace}/bin/startplasma-x11"; }; + environment.etc.xrdp.source = "${inputs.config.services.xrdp.package}/etc/xrdp"; } ( mkIf (xrdp.hostname != null)