this derivation will be built: /nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv building '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv' on 'ssh-ng://nix@eliza' building '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv' treefmt-check> treefmt v2.5.0traversed 1244 files treefmt-check> emitted 536 files for processing treefmt-check> formatted 536 files (3 changed) in 6.235s treefmt-check> M openwrt/nix_uci/__init__.py treefmt-check> diff --git a/openwrt/nix_uci/__init__.py b/openwrt/nix_uci/__init__.py treefmt-check> index 7a6e3ee..2e1fbe6 100644 treefmt-check> --- a/openwrt/nix_uci/__init__.py treefmt-check> +++ b/openwrt/nix_uci/__init__.py treefmt-check> @@ -127,13 +127,18 @@ def serialize_uci(configs: dict[str, Any], secrets: dict[str, str]) -> str: treefmt-check> for section_name, section in sections.items(): treefmt-check> if isinstance(section, list): treefmt-check> # Use shell loop to properly delete all existing list sections treefmt-check> - lines.append(f"# Clear all existing {config_name}.@{section_name} sections") treefmt-check> - lines.append(f"while uci -q delete {config_name}.@{section_name}[-1] 2>/dev/null; do :; done") treefmt-check> + lines.append( treefmt-check> + f"# Clear all existing {config_name}.@{section_name} sections" treefmt-check> + ) treefmt-check> + lines.append( treefmt-check> + f"while uci -q delete {config_name}.@{section_name}[-1] 2>/dev/null; do :; done" treefmt-check> + ) treefmt-check> lines.append("") treefmt-check> treefmt-check> # Add new sections treefmt-check> lines.extend( treefmt-check> - f"uci add {config_name} {section_name}" for _i in range(len(section)) treefmt-check> + f"uci add {config_name} {section_name}" treefmt-check> + for _i in range(len(section)) treefmt-check> ) treefmt-check> treefmt-check> for idx, list_obj in enumerate(section): error: build of '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv' on 'ssh-ng://nix@eliza' failed: Cannot build '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/0lilbxga6hcdhg56nxjsrkd7vis8k5i1-treefmt-check Last 25 log lines: > index 7a6e3ee..2e1fbe6 100644 > --- a/openwrt/nix_uci/__init__.py > +++ b/openwrt/nix_uci/__init__.py > @@ -127,13 +127,18 @@ def serialize_uci(configs: dict[str, Any], secrets: dict[str, str]) -> str: > for section_name, section in sections.items(): > if isinstance(section, list): > # Use shell loop to properly delete all existing list sections > - lines.append(f"# Clear all existing {config_name}.@{section_name} sections") > - lines.append(f"while uci -q delete {config_name}.@{section_name}[-1] 2>/dev/null; do :; done") > + lines.append( > + f"# Clear all existing {config_name}.@{section_name} sections" > + ) > + lines.append( > + f"while uci -q delete {config_name}.@{section_name}[-1] 2>/dev/null; do :; done" > + ) > lines.append("") > > # Add new sections > lines.extend( > - f"uci add {config_name} {section_name}" for _i in range(len(section)) > + f"uci add {config_name} {section_name}" > + for _i in range(len(section)) > ) > > for idx, list_obj in enumerate(section): For full logs, run: nix log /nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv error: Cannot build '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/0lilbxga6hcdhg56nxjsrkd7vis8k5i1-treefmt-check