moby: override browser-cache persistence more cleanly

This commit is contained in:
colin 2023-01-06 13:28:18 +00:00
parent e446bfba58
commit 493d317bb1
2 changed files with 3 additions and 6 deletions

View File

@ -99,8 +99,7 @@ in
# TODO: move this to ~/private! # TODO: move this to ~/private!
".local/share/keyrings" ".local/share/keyrings"
]; ];
# TODO: fix this ugly solution that allows moby to have firefox cache not erased every boot. sane.persist.home.cryptClearOnBoot = [
sane.persist.home.cryptClearOnBoot = lib.mkIf (config.networking.hostName != "moby") [
# cache is probably too big to fit on the tmpfs # cache is probably too big to fit on the tmpfs
# ".cache" # ".cache"
config.sane.web-browser.cacheDir config.sane.web-browser.cacheDir

View File

@ -24,10 +24,8 @@
}; };
# usability compromises # usability compromises
sane.persist.home.private = [ sane.persist.home.byPath."${config.sane.web-browser.dotDir}".store = lib.mkForce "private";
config.sane.web-browser.dotDir sane.persist.home.byPath."${config.sane.web-browser.cacheDir}".store = lib.mkForce "private";
config.sane.web-browser.cacheDir
];
sane.persist.home.plaintext = [ sane.persist.home.plaintext = [
".config/pulse" # persist pulseaudio volume ".config/pulse" # persist pulseaudio volume
]; ];