From 5c57529675b0656bb460cfe8cae5d610067fe105 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 13 Sep 2024 15:08:16 +0200 Subject: feat(users/Profpatsch): add xdg-cache-home Change-Id: I0f4efa16426f590cee9332d11c13dd07569b4acb Reviewed-on: https://cl.tvl.fyi/c/depot/+/12475 Reviewed-by: Profpatsch Tested-by: BuildkiteCI --- users/Profpatsch/xdg-cache-home.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 users/Profpatsch/xdg-cache-home.nix 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" +] -- cgit 1.4.1