todesk: bind tmpfs on /opt/todesk

This commit is contained in:
wxt
2025-03-02 19:51:56 +08:00
parent ef8cfa473c
commit 4a565d6b1f
+2 -5
View File
@@ -41,12 +41,8 @@ let
pname = "todesk-unwrapped";
version = version;
src = fetchurl {
url = "https://newdl.todesk.com/linux/todesk-v${finalAttrs.version}-amd64.deb";
url = "https://web.archive.org/web/20250302114501if_/https://newdl.todesk.com/linux/todesk-v4.7.2.0-amd64.deb";
hash = "sha256-v7VpXXFVaKI99RpzUWfAc6eE7NHGJeFrNeUTbVuX+yg=";
curlOptsList = [
"--user-agent"
"Mozilla/5.0"
];
};
nativeBuildInputs = [ dpkg ];
@@ -108,6 +104,7 @@ buildFHSEnv {
libva
];
extraBwrapArgs = [
"--tmpfs /opt/todesk"
"--bind /var/lib/todesk /opt/todesk/config" # create the folder before bind to avoid permission denided.
"--bind ${todesk-unwrapped}/bin /opt/todesk/bin"
"--bind /var/lib/todesk /etc/todesk" # service write uuid here. Such a pain!