librewolf: *always* back the dot dir by a real disk
this saves ram on memory-constrained devices
This commit is contained in:
parent
fe5be03e0a
commit
d4ed4ae9f1
|
@ -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"
|
||||||
|
;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user