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