mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
104 lines
2.4 KiB
Nix
104 lines
2.4 KiB
Nix
{
|
|
impermanence,
|
|
user,
|
|
...
|
|
}: {
|
|
imports = [
|
|
impermanence.nixosModules.impermanence
|
|
];
|
|
|
|
environment.persistence."/nix/persist" = {
|
|
hideMounts = true;
|
|
directories = [
|
|
"/var/log"
|
|
"/var/lib/nixos"
|
|
"/var/lib/bluetooth"
|
|
"/var/lib/systemd/coredump"
|
|
"/var/lib/docker"
|
|
"/var/lib/libvirt"
|
|
"/var/lib/qemu"
|
|
"/var/lib/nixos-containers"
|
|
"/var/lib/lxd"
|
|
"/var/lib/waydroid"
|
|
"/var/lib/flatpak"
|
|
"/var/lib/tcc"
|
|
"/var/lib/flood"
|
|
"/var/lib/transmission"
|
|
"/var/lib/gitea"
|
|
"/var/lib/acme"
|
|
"/var/lib/loki"
|
|
"/var/lib/mimir"
|
|
"/var/lib/tempo"
|
|
"/etc/NetworkManager/system-connections"
|
|
"/etc/tailord/"
|
|
];
|
|
files = [
|
|
"/etc/machine-id"
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
"/etc/ssh/ssh_host_rsa_key"
|
|
"/etc/ssh/ssh_host_rsa_key.pub"
|
|
"/var/snapraid.content"
|
|
"/var/cache/locatedb"
|
|
];
|
|
users.${user} = {
|
|
directories = [
|
|
"downloads"
|
|
"stuff"
|
|
"projects"
|
|
"work"
|
|
{
|
|
directory = ".gnupg";
|
|
mode = "0700";
|
|
}
|
|
{
|
|
directory = ".ssh";
|
|
mode = "0700";
|
|
}
|
|
".local/share/direnv"
|
|
".cache/direnv"
|
|
".local/share/flatpak"
|
|
".local/share/waydroid"
|
|
".local/share/bottles"
|
|
".var"
|
|
".kube"
|
|
".cache/flatpak"
|
|
".local/share/atuin"
|
|
# Cache for sessions (keep website logged in, plugin downloaded...)
|
|
".mozilla"
|
|
".zen"
|
|
".config/google-chrome"
|
|
".config/discord"
|
|
".config/Slack"
|
|
".config/vesktop"
|
|
".config/YouTube\ Music"
|
|
".config/gh"
|
|
".config/github-copilot"
|
|
# Don't reinstall plugins on reboot
|
|
".local/share/nvim"
|
|
".local/state/nvim"
|
|
# Gnome accounts
|
|
".config/goa-1.0"
|
|
".cache/gnome-control-center-goa-helper"
|
|
# Games directory for lutris
|
|
".local/lutris"
|
|
".local/games"
|
|
# Huge cache & long download i want to stay cache
|
|
".cache/nix"
|
|
".cache/.bun"
|
|
".cache/yarn"
|
|
".cache/go-build"
|
|
];
|
|
files = [
|
|
".config/zsh/custom.zsh"
|
|
];
|
|
};
|
|
};
|
|
|
|
fileSystems."/home/zoriya/wallpapers" = {
|
|
device = "/home/zoriya/projects/flake/wallpapers/";
|
|
fsType = "none";
|
|
options = ["bind"];
|
|
};
|
|
}
|