We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fbc0f2 commit f9647bfCopy full SHA for f9647bf
workspace/services/desktop.nix
@@ -26,6 +26,11 @@ let
26
export XDG_DATA_DIRS="/run/dojo/share:''${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
27
export XDG_CONFIG_DIRS="/run/dojo/etc/xdg:''${XDG_CONFIG_DIRS:-/etc/xdg}"
28
29
+ if ! test -d "$XDG_RUNTIME_DIR"; then
30
+ mkdir -p "$XDG_RUNTIME_DIR"
31
+ chown hacker:hacker "$XDG_RUNTIME_DIR"
32
+ fi
33
+
34
auth_token="$(cat /run/dojo/var/auth_token)"
35
password_interact="$(printf 'desktop-interact' | ${pkgs.openssl}/bin/openssl dgst -sha256 -hmac "$auth_token" | awk '{print $2}' | head -c 8)"
36
password_view="$(printf 'desktop-view' | ${pkgs.openssl}/bin/openssl dgst -sha256 -hmac "$auth_token" | awk '{print $2}' | head -c 8)"
0 commit comments