From bd419d0a466aac95669bd26d96134a6ed00e05c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 13 Nov 2024 15:52:49 +0100 Subject: [PATCH] use absolute paths for user tmpfiles --- programs/desktop/development/rust/default.nix | 10 +++++----- programs/desktop/ims.nix | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/programs/desktop/development/rust/default.nix b/programs/desktop/development/rust/default.nix index b22cb540..af921b4c 100644 --- a/programs/desktop/development/rust/default.nix +++ b/programs/desktop/development/rust/default.nix @@ -31,11 +31,11 @@ CARGO_HOME = "${config.xdg.dataHome}/cargo"; }; systemd.user.tmpfiles.rules = [ - "d ${config.xdg.cacheHome}/cargo - - - - -" - "d ${config.xdg.cacheHome}/cargo/git - - - - -" - "d ${config.xdg.cacheHome}/cargo/registry - - - - -" - "L ${config.xdg.dataHome}/cargo/git - - - - ${config.xdg.cacheHome}/cargo/git" - "L ${config.xdg.dataHome}/cargo/registry - - - - ${config.xdg.cacheHome}/cargo/registry" + "d /persistent${config.xdg.cacheHome}/cargo - - - - -" + "d /persistent${config.xdg.cacheHome}/cargo/git - - - - -" + "d /persistent${config.xdg.cacheHome}/cargo/registry - - - - -" + "L /persistent${config.xdg.dataHome}/cargo/git - - - - ${config.xdg.cacheHome}/cargo/git" + "L /persistent${config.xdg.dataHome}/cargo/registry - - - - ${config.xdg.cacheHome}/cargo/registry" ]; xdg.dataFile."cargo/config.toml".source = (pkgs.formats.toml { }).generate "config.toml" { build.target-dir = "${config.xdg.cacheHome}/cargo/target"; diff --git a/programs/desktop/ims.nix b/programs/desktop/ims.nix index ac0aa356..f46f4fba 100644 --- a/programs/desktop/ims.nix +++ b/programs/desktop/ims.nix @@ -5,9 +5,9 @@ ]; home.persistence.default.directories = [ ".local/share/TelegramDesktop" ]; systemd.user.tmpfiles.rules = [ - "d ${config.xdg.cacheHome}/TelegramDesktop/cache - - - - -" - "d ${config.xdg.cacheHome}/TelegramDesktop/media_cache - - - - -" - "L ${config.xdg.dataHome}/TelegramDesktop/tdata/user_data/cache - - - - ${config.xdg.cacheHome}/TelegramDesktop/cache" - "L ${config.xdg.dataHome}/TelegramDesktop/tdata/user_data/media_cache - - - - ${config.xdg.cacheHome}/TelegramDesktop/media_cache" + "d /persistent${config.xdg.cacheHome}/TelegramDesktop/cache - - - - -" + "d /persistent${config.xdg.cacheHome}/TelegramDesktop/media_cache - - - - -" + "L /persistent${config.xdg.dataHome}/TelegramDesktop/tdata/user_data/cache - - - - ${config.xdg.cacheHome}/TelegramDesktop/cache" + "L /persistent${config.xdg.dataHome}/TelegramDesktop/tdata/user_data/media_cache - - - - ${config.xdg.cacheHome}/TelegramDesktop/media_cache" ]; }