use absolute paths for user tmpfiles

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-13 15:52:49 +01:00
parent 763385e337
commit bd419d0a46
2 changed files with 9 additions and 9 deletions

View file

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

View file

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