home: Set systemd session variables

This commit is contained in:
Mikael 2024-10-24 20:44:35 +02:00
parent 28e2114a2f
commit 2ffc1c83c7
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -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"