impermanence for real

This commit is contained in:
William 2023-12-07 17:00:16 -03:00
parent 0c8df4dd20
commit 831b1293fc
2 changed files with 42 additions and 0 deletions

View file

@ -4,6 +4,7 @@
imports = [
./boot.nix
./hardware.nix
./impermanence.nix
./nix.nix
./packages.nix
./services.nix

View file

@ -0,0 +1,41 @@
{ config, lib, pkgs, ... }:
{
environment.persistent.main = {
persistentStoragePath = "/persistent";
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"
];
directories = [
"/var/log"
"/var/lib/bluetooth"
"/var/lib/docker"
"/var/lib/nixos"
"/var/lib/flatpak"
"/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections"
];
users.user = {
directories = [
"Documents"
"Games"
"Music"
"Pictures"
"Projects"
"Videos"
"VMs"
".mozilla"
".local/share/containers"
".local/share/direnv"
".local/share/flatpak"
".local/share/Steam"
".cache/nix"
".cache/flatpak"
];
};
};
}