use bind mounts for .mozilla and .thunderbird instead of symlinks

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-20 08:38:58 +01:00
parent 60255d49f3
commit 609ccb4a3d
4 changed files with 8 additions and 55 deletions

View file

@ -4,6 +4,7 @@
./steam
./kodi/system-config.nix
./pipewire.nix
./firefox/system.nix
];
home-manager.users.darkkirb.imports =
if config.isGraphical then

View file

@ -151,30 +151,4 @@ in
message = ''Extension ${k} has unaccepted permissions: ${builtins.toJSON unaccepted}'';
}
) extensions;
home.persistence.default.directories = map (f: ".mozilla/firefox/default/${f}") [
"extension-store"
"extension-store-menus"
"storage"
"settings"
"security_state"
];
home.persistence.default.files = map (f: ".mozilla/firefox/default/${f}") [
"addons.json"
"cookies.sqlite"
"extension-preferences.json"
"extension-settings.json"
"favicons.sqlite"
"formhistory.sqlite"
"key4.db"
"permissions.sqlite"
"places.sqlite"
"protections.sqlite"
"prefs.js"
"storage.sqlite"
"storage-sync-v2.sqlite"
"storage-sync-v2.sqlite-shm"
"storage-sync-v2.sqlite-wal"
"webappsstore.sqlite"
"webappsstore.sqlite-wal"
];
}

View file

@ -0,0 +1,7 @@
{ ... }:
{
environment.persistence."/persistent".directories = [
"/home/darkkirb/.mozilla"
"/home/darkkirb/.thunderbird"
];
}

View file

@ -54,33 +54,4 @@
withExternalGnupg = true;
};
};
home.persistence.default.directories = map (f: ".thunderbird/default/${f}") [
"calendar-data"
"ImapMail"
"Mail"
"settings"
"storage"
];
home.persistence.default.files = map (f: ".thunderbird/default/${f}") [
"abook.sqlite"
"blist.sqlite"
"content-prefs.sqlite"
"cookies.sqlite"
"extension-preferences.json"
"extensions.json"
"favicons.sqlite"
"folderTree.json"
"formhistory.sqlite"
"global-messages-db.sqlite"
"history.sqlite"
"key4.db"
"logins.json"
"mailViews.dat"
"openpgp.sqlite"
"permissions.sqlite"
"places.sqlite"
"prefs.js"
"storage.sqlite"
"virtualFolders.dat"
];
}