nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.14k stars 85 forks source link

Persistence files in ~/.config/chromium #118

Open xendak opened 1 year ago

xendak commented 1 year ago

Hello! First i'd like to say that i'm not really sure if this is an issue i should post here? mainly because I don't really know the cause, so might be totally unrelated, but i'm also not sure where i would be able to get help on this...

Some information: I have a system/home that are on btrfs and I'm using impermanence to selectively save the important files/directories, recently i wanted to try preserving only some specific information on ungoogled-chromium browser, instead of the entire folder, so i did the setup below:

home.persistence."/persist/snow/flakes" = {
    files = [
        ".config/chromium/Local State"
        ".config/chromium/Default/Bookmarks"
        ".config/chromium/Default/Preferences"
        ".config/chromium/Default/Cookies"
        ".config/chromium/Default/Bookmarks"
    ];
    directories = [
        ".config/chromium/Default/Local Storage"
    ]
}

Issue: It seems the files Local State and Preferences aren't working, they are the only ones that don't get linked to the ones I have in /persist, so chromium basically uses it and when a reboot happens they get created again.

I'd rather not save the "Preferences", but declaratively create it, but it also seems to not be working .-.

Thanks, and sorry if is not the correct place for such question.

talyz commented 1 year ago

Hi! Can you see any error messages in the journal? When you boot the system, are the files there before you start chromium or are they not linked at all?