about summary refs log tree commit diff
path: root/nixos/tests/incron.nix
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-10-28 23:50:24 +0200
committernikstur <nikstur@outlook.com>2023-12-29 03:21:36 +0100
commit36f2ab21eae7b7924f7bbeb62f7453a9d94defbc (patch)
treef6b094971ee310bfeb8f2e7457f4dddd5baaf0c0 /nixos/tests/incron.nix
parent80fa4731f9ce5c0e5e70b0ed7c73730f043a9f1d (diff)
nixos/tests/incron: replace activcationScript via tmpfiles
Diffstat (limited to 'nixos/tests/incron.nix')
-rw-r--r--nixos/tests/incron.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/incron.nix b/nixos/tests/incron.nix
index c978ff27dfad5..d016360ba0ef8 100644
--- a/nixos/tests/incron.nix
+++ b/nixos/tests/incron.nix
@@ -13,9 +13,9 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
       '';
 
       # ensure the directory to be monitored exists before incron is started
-      system.activationScripts.incronTest = ''
-        mkdir /test
-      '';
+      systemd.tmpfiles.settings.incron-test = {
+        "/test".d = { };
+      };
     };
 
   testScript = ''