use absolute paths for user tmpfiles
This commit is contained in:
parent
763385e337
commit
bd419d0a46
2 changed files with 9 additions and 9 deletions
|
@ -31,11 +31,11 @@
|
||||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||||
};
|
};
|
||||||
systemd.user.tmpfiles.rules = [
|
systemd.user.tmpfiles.rules = [
|
||||||
"d ${config.xdg.cacheHome}/cargo - - - - -"
|
"d /persistent${config.xdg.cacheHome}/cargo - - - - -"
|
||||||
"d ${config.xdg.cacheHome}/cargo/git - - - - -"
|
"d /persistent${config.xdg.cacheHome}/cargo/git - - - - -"
|
||||||
"d ${config.xdg.cacheHome}/cargo/registry - - - - -"
|
"d /persistent${config.xdg.cacheHome}/cargo/registry - - - - -"
|
||||||
"L ${config.xdg.dataHome}/cargo/git - - - - ${config.xdg.cacheHome}/cargo/git"
|
"L /persistent${config.xdg.dataHome}/cargo/git - - - - ${config.xdg.cacheHome}/cargo/git"
|
||||||
"L ${config.xdg.dataHome}/cargo/registry - - - - ${config.xdg.cacheHome}/cargo/registry"
|
"L /persistent${config.xdg.dataHome}/cargo/registry - - - - ${config.xdg.cacheHome}/cargo/registry"
|
||||||
];
|
];
|
||||||
xdg.dataFile."cargo/config.toml".source = (pkgs.formats.toml { }).generate "config.toml" {
|
xdg.dataFile."cargo/config.toml".source = (pkgs.formats.toml { }).generate "config.toml" {
|
||||||
build.target-dir = "${config.xdg.cacheHome}/cargo/target";
|
build.target-dir = "${config.xdg.cacheHome}/cargo/target";
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
];
|
];
|
||||||
home.persistence.default.directories = [ ".local/share/TelegramDesktop" ];
|
home.persistence.default.directories = [ ".local/share/TelegramDesktop" ];
|
||||||
systemd.user.tmpfiles.rules = [
|
systemd.user.tmpfiles.rules = [
|
||||||
"d ${config.xdg.cacheHome}/TelegramDesktop/cache - - - - -"
|
"d /persistent${config.xdg.cacheHome}/TelegramDesktop/cache - - - - -"
|
||||||
"d ${config.xdg.cacheHome}/TelegramDesktop/media_cache - - - - -"
|
"d /persistent${config.xdg.cacheHome}/TelegramDesktop/media_cache - - - - -"
|
||||||
"L ${config.xdg.dataHome}/TelegramDesktop/tdata/user_data/cache - - - - ${config.xdg.cacheHome}/TelegramDesktop/cache"
|
"L /persistent${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"
|
"L /persistent${config.xdg.dataHome}/TelegramDesktop/tdata/user_data/media_cache - - - - ${config.xdg.cacheHome}/TelegramDesktop/media_cache"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue