NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci(raspi-base): more debugging hell ahead

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+19 -3
+1 -1
.github/workflows/update-flakes.yml
··· 79 79 name: Build custom Raspberry Pi SD image 80 80 runs-on: ubuntu-latest 81 81 env: 82 - PREBUILD_TAG: build-1743086698 82 + PREBUILD_TAG: build-1743088286 83 83 steps: 84 84 - uses: actions/checkout@v4 85 85 with:
+8
hosts/raspi-base/build-docker.sh
··· 1 + #!/usr/bin/env bash 2 + set -xe 3 + 4 + TIMSTAMP=$(date +%s) 5 + 6 + docker compose build 7 + docker tag ghcr.io/andreijiroh-dev/nixops-config/rpi-sd-imager:dev "ghcr.io/andreijiroh-dev/nixops-config/rpi-sd-imager:build-$TIMSTAMP" 8 + docker push "ghcr.io/andreijiroh-dev/nixops-config/rpi-sd-imager:build-$TIMSTAMP"
+6
hosts/raspi-base/builder/generate-sd-image.sh
··· 22 22 IMG=$ARTIFACT 23 23 fi 24 24 25 + # bail out if we failed to build the thing 26 + if [ $IMG = "" ]; then 27 + echo "error: Something went wrong while building the SD image, check logs" 28 + exit 1 29 + fi 30 + 25 31 echo "Found img file: $IMG" 26 32 27 33 mkdir -pv /build/out || true
+4 -2
hosts/raspi-base/sd-image.nix
··· 5 5 <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix> 6 6 ./sd-image-init.nix 7 7 ]; 8 + system.stateVersion = "24.11"; 8 9 9 10 # bzip2 compression takes loads of time with emulation, skip it. Enable 10 11 # this if you're low on space. 11 12 sdImage.compressImage = false; 12 13 13 14 sdImage.populateRootCommands = '' 15 + pwd # just in case 14 16 mkdir -p ./files/etc/sd-image-metadata/ 15 - cp ./configuration.nix ./files/etc/sd-image-metadata/configuration.nix 16 - cp ./sd-image-init.nix ./files/etc/sd-image-metadata/sd-image-init.nix 17 + cp /build/src/configuration.nix ./files/etc/sd-image-metadata/configuration.nix 18 + cp /build/src/sd-image-init.nix ./files/etc/sd-image-metadata/sd-image-init.nix 17 19 ''; 18 20 19 21 # OpenSSH is forced to have an empty `wantedBy` on the installer system[1], this won't allow it