Persist /var/log in voyager

This commit is contained in:
ItsDrike 2024-06-19 17:15:53 +02:00
parent ad1a4bae0c
commit 6a16de8d16
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 7 additions and 0 deletions

View file

@ -44,6 +44,10 @@
# Some people use /nix/persist/system for this, leaving persistent files in /nix subvolume
# I much prefer using a standalone subvolume for this though.
persistentMountPoint = "/persist";
extraDirectories = [
"/var/log"
];
};
# Configure automatic root subvolume wiping on boot from initrd

View file

@ -32,6 +32,9 @@ in
"/etc/nixos" # NixOS configuration source
"/etc/NetworkManager/system-connections" # saved network connections
"/var/db/sudo" # keeps track of who got the sudo lecture already
# "/var/log" # I sometimes use a subvolume for this, added manually if not
"/var/lib/nixos"
"/var/lib/bluetooth"
"/var/lib/systemd/coredump" # captured coredumps
] ++ cfg.extraDirectories;