mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:19:41 +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
|
# Some people use /nix/persist/system for this, leaving persistent files in /nix subvolume
|
||||||
# I much prefer using a standalone subvolume for this though.
|
# I much prefer using a standalone subvolume for this though.
|
||||||
persistentMountPoint = "/persist";
|
persistentMountPoint = "/persist";
|
||||||
|
|
||||||
|
extraDirectories = [
|
||||||
|
"/var/log"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure automatic root subvolume wiping on boot from initrd
|
# Configure automatic root subvolume wiping on boot from initrd
|
||||||
|
|
|
@ -32,6 +32,9 @@ in
|
||||||
"/etc/nixos" # NixOS configuration source
|
"/etc/nixos" # NixOS configuration source
|
||||||
"/etc/NetworkManager/system-connections" # saved network connections
|
"/etc/NetworkManager/system-connections" # saved network connections
|
||||||
"/var/db/sudo" # keeps track of who got the sudo lecture already
|
"/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
|
"/var/lib/systemd/coredump" # captured coredumps
|
||||||
] ++ cfg.extraDirectories;
|
] ++ cfg.extraDirectories;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue