add disko

This commit is contained in:
Zoty 2026-05-23 15:31:28 -03:00
parent 8a35a32445
commit ba6d0a06a0
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
7 changed files with 277 additions and 73 deletions

View file

@ -39,6 +39,13 @@ gc:
generations:
sudo nix-env --list-generations --profile /nix/var/nix/profiles/system
# Build the installer ISO (bootable USB image)
iso:
nix build .#nixosConfigurations.installer.config.system.build.isoImage
@echo ""
@echo "ISO built at: $(readlink -f result)/iso/*.iso"
@echo "Flash with: sudo dd if=result/iso/*.iso of=/dev/sdX bs=4M status=progress && sync"
# Edit the SOPS-encrypted secrets file
secrets:
sops secrets/secrets.yaml