1
Fork 0
nixos-system-config/users/hu/persist.nix
caem 4003cc3d61
Store default data for firefox in persistence.
I eventually want to modify this to automatically add only the extension
data by gettin the files through globbing or something but I don't know
how to do that yet and it's not really that high of a priority as
firefox will clean those either way on restart and it'd be more of a
keeping everything tidy problem.
2024-07-09 14:04:31 +02:00

51 lines
1.3 KiB
Nix

{ ... }:
{
environment.persistence."/nix/persist".users.hu = {
directories = [
# Inspired by
# https://github.com/roboyoshi/datacurator-filetree/
"archives"
"audio"
"documents"
"images"
"games"
"literature"
"software"
"video"
# Program files
{ directory = ".gnupg"; mode = "0700"; }
{ directory = ".ssh"; mode = "0700"; }
{ directory = ".nixops"; mode = "0700"; }
{ directory = ".local/share/keyrings"; mode = "0700"; }
".local/share/direnv"
".mozilla/firefox/shaga/bookmarkbackups"
".mozilla/firefox/shaga/chrome"
".mozilla/firefox/shaga/storage/default"
".config/Signal"
".config/vesktop"
".config/tutanota-desktop"
".config/tuta_integration"
".config/Element"
{ directory = ".pki"; mode = "0700"; }
".local/share/nvim"
".local/state/nvim"
".steam"
".local/share/Steam"
".local/share/honkers-railway-launcher"
".local/share/PrismLauncher"
".xlcore"
".local/share/Euro Truck Simulator 2"
".local/share/osu"
".config/OpenTabletDriver"
];
files = [
".mozilla/firefox/shaga/places.sqlite"
".mozilla/firefox/shaga/xulstore.json"
# ".mozilla/firefox/shaga/prefs.js"
];
};
}