Compare commits

..

No commits in common. "0a8b2b8e5500501e9efb38122ccaf8e146a7a548" and "5abcc66191dc5323f8b77a7aec7c31b8a17eb007" have entirely different histories.

View file

@ -47,18 +47,17 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.persistence."${cfg.mountPoint}" = { environment.persistence."${cfg.mountPoint}" = {
files = [ files = [
"/etc/machine-id" "/etc/machine-id" # Machine-specific ID
"/etc/adjtime" "/etc/adjtime" # Clock drift factor and offsets
"/var/lib/systemd/timesync/clock"
] ]
++ lib.unique cfg.files ++ lib.unique cfg.files
; ;
directories = [ directories = [
"/etc/nixos" # In case it's storage directory of our configuration "/etc/nixos" # In case it's storage directory of our configuration
"/var/log" "/var/log" # Logs
"/var/lib/nixos" # UID/GID maps "/var/lib/nixos" # UID/GID maps
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump" # Coredumps
"/var/lib/systemd" # FIXME: needed? "/var/lib/systemd" # FIXME: needed?
"/var/spool" # FIXME: needed? "/var/spool" # FIXME: needed?