mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:04:33 +00:00
Persist /var/log in voyager
This commit is contained in:
parent
ad1a4bae0c
commit
6a16de8d16
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue