about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/Profpatsch/xdg-cache-home.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/users/Profpatsch/xdg-cache-home.nix b/users/Profpatsch/xdg-cache-home.nix
new file mode 100644
index 000000000000..6dc02b7f1d66
--- /dev/null
+++ b/users/Profpatsch/xdg-cache-home.nix
@@ -0,0 +1,14 @@
+{ depot, pkgs, lib, ... }:
+depot.nix.writeExecline "xdg-cache-home" { } [
+  "if"
+  "-n"
+  [
+    "printenv"
+    "XDG_CACHE_HOME"
+  ]
+  "importas"
+  "HOME"
+  "HOME"
+  "echo"
+  "\${HOME}/.cache"
+]