fix: avoid p4d init IFD
runner nix smoke / nix label and flake smoke (push) Failing after 59s

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-09-11 08:36:59 +00:00
parent ed721dd961
commit 572133a941
+2 -2
View File
@@ -56,7 +56,7 @@
"-L" "${cfg.dataDir}/logs/bootstrap.log"
] ++ lib.optional (!cfg.caseSensitive) "-C1";
initScript = pkgs.writeShellScript "p4d-init" ''
initScript = ''
set -eu
export P4ROOT=${lib.escapeShellArg cfg.dataDir}
@@ -334,7 +334,7 @@ in {
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
preStart = builtins.readFile initScript;
preStart = initScript;
serviceConfig = {
Type = "simple";
User = serviceUser;