lol

nixos/tests/systemd-timesyncd: replace activationScript via tmpfiles

nikstur 339a866b 6987ff3a

+7 -6
+7 -6
nixos/tests/systemd-timesyncd.nix
··· 15 15 # create the path that should be migrated by our activation script when 16 16 # upgrading to a newer nixos version 17 17 system.stateVersion = "19.03"; 18 - system.activationScripts.simulate-old-timesync-state-dir = lib.mkBefore '' 19 - rm -f /var/lib/systemd/timesync 20 - mkdir -p /var/lib/systemd /var/lib/private/systemd/timesync 21 - ln -s /var/lib/private/systemd/timesync /var/lib/systemd/timesync 22 - chown systemd-timesync: /var/lib/private/systemd/timesync 23 - ''; 18 + systemd.tmpfiles.rules = [ 19 + "r /var/lib/systemd/timesync -" 20 + "d /var/lib/systemd -" 21 + "d /var/lib/private/systemd/timesync -" 22 + "L /var/lib/systemd/timesync - - - - /var/lib/private/systemd/timesync" 23 + "d /var/lib/private/systemd/timesync - systemd-timesync systemd-timesync -" 24 + ]; 24 25 }); 25 26 }; 26 27