librewolf: *always* back the dot dir by a real disk

this saves ram on memory-constrained devices
This commit is contained in:
Colin 2023-07-13 06:44:22 +00:00
parent fe5be03e0a
commit d4ed4ae9f1

View File

@ -238,14 +238,20 @@ in
}) })
(mkIf config.sane.programs.web-browser.enabled { (mkIf config.sane.programs.web-browser.enabled {
# TODO: move the persistence into the sane.programs API (above) # TODO: move the persistence into the sane.programs API (above)
# flush the cache to disk to avoid it taking up too much tmp # flush the cache to disk to avoid it taking up too much tmp.
sane.user.persist.byPath."${cfg.browser.cacheDir}" = lib.mkIf (cfg.persistCache != null) { sane.user.persist.byPath."${cfg.browser.cacheDir}".store =
store = cfg.persistCache; if (cfg.persistData != null) then
}; cfg.persistData
else
"cryptClearOnBoot"
;
sane.user.persist.byPath."${cfg.browser.dotDir}/default" = lib.mkIf (cfg.persistData != null) { sane.user.persist.byPath."${cfg.browser.dotDir}/default".store =
store = cfg.persistData; if (cfg.persistData != null) then
}; cfg.persistData
else
"cryptClearOnBoot"
;
}) })
]; ];
} }