moby: fix to preserve browser cache across boots

This commit is contained in:
2023-01-04 13:27:20 +00:00
parent 122d3cd7e4
commit 0977721af5
3 changed files with 6 additions and 2 deletions

View File

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

View File

@@ -26,6 +26,7 @@
# usability compromises
sane.impermanence.dirs.home.private = [
config.sane.web-browser.dotDir
config.sane.web-browser.cacheDir
];
sane.impermanence.dirs.home.plaintext = [
".config/pulse" # persist pulseaudio volume

View File

@@ -19,12 +19,14 @@ let
# });
libName = "librewolf";
dotDir = ".librewolf";
cacheDir = ".cache/librewolf"; # TODO: is it?
desktop = "librewolf.desktop";
};
firefoxSettings = {
browser = pkgs.firefox-esr-unwrapped;
libName = "firefox";
dotDir = ".mozilla/firefox";
cacheDir = ".cache/mozilla";
desktop = "firefox.desktop";
};
defaultSettings = firefoxSettings;