From 708b85accaf955f3f4314efaf4d122d2991399d5 Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Tue, 18 Nov 2025 01:41:36 -0500 Subject: [PATCH] services.self-deploy: fix nix-build argument format nix-build doesn't accept `--attr=` as a valid way to build a specific attribute; it needs to be passed without the equal sign, as two separate arguments. --- nixos/modules/services/system/self-deploy.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/system/self-deploy.nix b/nixos/modules/services/system/self-deploy.nix index bde3ac811569..49ef1d8c57b9 100644 --- a/nixos/modules/services/system/self-deploy.nix +++ b/nixos/modules/services/system/self-deploy.nix @@ -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 (