ctucx.git: nixfiles

ctucx' nixfiles

commit 3cf2095bfb3f09ea661626bc951993c33d4244b6
parent 98a0b5b07c5a64dae49da148468a28dee4a7502d
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 17 Oct 2023 09:21:25 +0200

modules/darwin/syncthing: wait until nix-store is available
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/modules/darwin/syncthing.nix b/modules/darwin/syncthing.nix
@@ -482,6 +482,7 @@ in {
       };
 
       script    = ''
+        /bin/wait4path /nix/store
         install -dm700 -o ${cfg.user} -g ${cfg.group} ${cfg.configDir}
         ${optionalString (cfg.cert != null) "install -Dm400 -o ${cfg.user} -g ${cfg.group} ${toString cfg.cert} ${cfg.configDir}/cert.pem"}
         ${optionalString (cfg.key != null) "install -Dm400 -o ${cfg.user} -g ${cfg.group} ${toString cfg.key} ${cfg.configDir}/key.pem"}