moby: fix to preserve browser cache across boots
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user