Compare commits

..

5 commits

Author SHA1 Message Date
Bruno BELANYI 0a8b2b8e55 fixup! fixup! WIP: even more directories? Maybe?
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2024-12-04 19:59:09 +00:00
Bruno BELANYI 3ebd6f47a3 fixup! fixup! WIP: even more directories? Maybe? 2024-12-04 19:59:09 +00:00
Bruno BELANYI d31e8a35b7 fixup! WIP: nixos: system: add persist 2024-11-30 13:31:01 +00:00
Bruno BELANYI b23cd9e891 fixup! WIP: nixos: system: add persist 2024-11-30 13:31:01 +00:00
Bruno BELANYI d5337709c6 fixup! WIP: even more directories? Maybe? 2024-11-30 13:31:01 +00:00

View file

@ -47,17 +47,18 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.persistence."${cfg.mountPoint}" = { environment.persistence."${cfg.mountPoint}" = {
files = [ files = [
"/etc/machine-id" # Machine-specific ID "/etc/machine-id"
"/etc/adjtime" # Clock drift factor and offsets "/etc/adjtime"
"/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" # Logs "/var/log"
"/var/lib/nixos" # UID/GID maps "/var/lib/nixos" # UID/GID maps
"/var/lib/systemd/coredump" # Coredumps "/var/lib/systemd/coredump"
"/var/lib/systemd" # FIXME: needed? "/var/lib/systemd" # FIXME: needed?
"/var/spool" # FIXME: needed? "/var/spool" # FIXME: needed?