Commit Graph
5 Commits
Author SHA1 Message Date
kurogeek b4f9ae3f94 cursa: build sd-card image with secret injection
`clan machines build cursa --format sd-card` failed in clan-cli's
post-build secret injection:

  Expected directory /nix/store/...-nixos-image-sd-card-...img.zst/sd-card not found in build output

clan-cli assumed $out/<format>/ (only true for iso; sd-card writes
$out/sd-image/) and tried to inject into every format although only iso
has an addFilesScript. Fixed upstream in
patches/upstream-sd-card-secret-injection.patch (pending PR); until it
lands:

- shell.nix: apply patches/clan-cli-image-filepath.patch (the clan-cli
  part of the upstream change) to the devshell's clan-cli.
- modules/nixos/sd-card-image.nix: local copy of the upstream
  clan.core.image.sd-card.addFilesScript module. Writes the vars tree
  directly into the ext4 root partition with debugfs (no boot-time
  hook), verifies with cmp + e2fsck. Delete once clan-core ships it.
- cursa imports it and builds its sd-card image without disko.
2026-09-29 15:33:22 +07:00
kurogeek 5ffbe0ed9b bump clan-core, nixpkgs 2025-10-30 11:59:22 +07:00
kurogeek 49ed4d78c3 rework nextcloud service 2025-07-29 14:38:22 +07:00
kurogeek eae90aeae0 move import to flake module 2025-07-11 11:43:34 +07:00
kurogeek 610952acae initial flake with clan cli and formating 2025-07-11 11:16:22 +07:00