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" ]; }