services.self-deploy: fix nix-build argument format (#462807)

This commit is contained in:
Aleksana
2025-11-25 10:43:09 +00:00
committed by GitHub
+10 -4
View File
@@ -179,10 +179,16 @@ in
${gitWithRepo} checkout FETCH_HEAD
nix-build${renderNixArgs cfg.nixArgs} ${
lib.cli.toCommandLineShellGNU { } {
attr = cfg.nixAttribute;
out-link = outPath;
}
lib.cli.toCommandLineShell
(optionName: {
option = "--${optionName}";
sep = null;
explicitBool = false;
})
{
attr = cfg.nixAttribute;
out-link = outPath;
}
} ${lib.escapeShellArg "${repositoryDirectory}${cfg.nixFile}"}
${lib.optionalString (