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! # TODO: move this to ~/private!
".local/share/keyrings" ".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 is probably too big to fit on the tmpfs
# ".cache" # ".cache"
".cache/mozilla" config.sane.web-browser.cacheDir
]; ];
# convenience # convenience

View File

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

View File

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