about summary refs log tree commit diff
path: root/nixos/tests/incron.nix
diff options
context:
space:
mode:
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 = ''