From 2ffc1c83c71cca03562396bb9418a2d2e80dfcd1 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Thu, 24 Oct 2024 20:44:35 +0200 Subject: [PATCH] home: Set systemd session variables --- home/config/nil/home.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/config/nil/home.nix b/home/config/nil/home.nix index a7b8424..4f2b66b 100644 --- a/home/config/nil/home.nix +++ b/home/config/nil/home.nix @@ -328,6 +328,11 @@ in { services.ssh-agent.enable = true; + systemd.user.sessionVariables = { + TMPDIR = "$XDG_RUNTIME_DIR/tmp"; + XDG_CACHE_HOME = "\${XDG_CACHE_HOME:-$HOME/.cache}"; + }; + systemd.user.tmpfiles.rules = [ "d %C 700 - - 90d" "d %t/ssh 700"