about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-11-18 22:13:49 +0100
committernikstur <nikstur@outlook.com>2023-11-27 19:29:25 +0100
commit5257a52c8bd67827a6b3eec6574a50159068f7e6 (patch)
treedaa4adc6f3b49351c35b184cfea9c01709a49eb6 /nixos/tests
parentc1681fe35cdd912d2de0dfd6e78886554538e434 (diff)
downloadnixlib-5257a52c8bd67827a6b3eec6574a50159068f7e6.tar
nixlib-5257a52c8bd67827a6b3eec6574a50159068f7e6.tar.gz
nixlib-5257a52c8bd67827a6b3eec6574a50159068f7e6.tar.bz2
nixlib-5257a52c8bd67827a6b3eec6574a50159068f7e6.tar.lz
nixlib-5257a52c8bd67827a6b3eec6574a50159068f7e6.tar.xz
nixlib-5257a52c8bd67827a6b3eec6574a50159068f7e6.tar.zst
nixlib-5257a52c8bd67827a6b3eec6574a50159068f7e6.zip
nixos/tests/systemd-timesyncd: tmpfiles.rules -> tmpfiles.settings
This also fixes some warning systemd-tmpfiles was issuing before.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/systemd-timesyncd.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/nixos/tests/systemd-timesyncd.nix b/nixos/tests/systemd-timesyncd.nix
index f38d06be1516..02f49f49b8a5 100644
--- a/nixos/tests/systemd-timesyncd.nix
+++ b/nixos/tests/systemd-timesyncd.nix
@@ -15,13 +15,14 @@ in {
       # create the path that should be migrated by our activation script when
       # upgrading to a newer nixos version
       system.stateVersion = "19.03";
-      systemd.tmpfiles.rules = [
-        "r /var/lib/systemd/timesync -"
-        "d /var/lib/systemd -"
-        "d /var/lib/private/systemd/timesync -"
-        "L /var/lib/systemd/timesync - - - - /var/lib/private/systemd/timesync"
-        "d /var/lib/private/systemd/timesync - systemd-timesync systemd-timesync -"
-      ];
+      systemd.tmpfiles.settings.systemd-timesyncd-test = {
+        "/var/lib/systemd/timesync".R = { };
+        "/var/lib/systemd/timesync".L.argument = "/var/lib/private/systemd/timesync";
+        "/var/lib/private/systemd/timesync".d = {
+          user = "systemd-timesync";
+          group = "systemd-timesync";
+        };
+      };
     });
   };