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.

Build recoverykit-amd64 ISO and upload as CI artifact

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

+30 -19
+30 -19
.github/workflows/update-flakes.yml
··· 13 13 runs-on: ubuntu-latest 14 14 steps: 15 15 - uses: actions/checkout@v2 16 - - name: Set up Nix 17 - uses: cachix/install-nix-action@v14 16 + 17 + - name: Setup Deterinate Nix 18 + uses: DeterminateSystems/nix-installer-action@main 18 19 with: 19 - nix_path: nixpkgs=channel:nixos-unstable 20 - extra_nix_config: | 21 - experimental-features = nix-command flakes 22 - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} 20 + determinate: true 23 21 24 22 - name: Update flake 25 23 run: | 26 - echo ::addgroup: 24 + echo ::addgroup::Updating lockfile 27 25 nix flake update 28 - echo ::endgroup 26 + echo ::endgroup:: 27 + 28 + echo ::addgroup::Metadata 29 29 nix flake metadata 30 + echo ::endgroup:: 30 31 31 32 - name: Commit and push changes 32 33 run: | 33 - git config --global user.name "github-actions[bot]" 34 - git config --global user.email "github-actions[bot]@users.noreply.github.com" 34 + git config --global user.name "RecapTimeBot" 35 + git config --global user.email "recaptimebot@gmail.com" 35 36 git add flake.lock 36 37 git commit -m "Update flake.lock" || echo "No changes to commit" 37 38 git push 38 - build: 39 + build-iso: 39 40 needs: [update-lockfile] 41 + name: Build recovery ISO 40 42 runs-on: ubuntu-latest 41 43 steps: 42 44 - uses: actions/checkout@v2 43 45 with: 44 46 fetch-depth: 0 45 - - name: Set up Nix 46 - uses: cachix/install-nix-action@v14 47 + 48 + - name: Setup Deterinate Nix 49 + uses: DeterminateSystems/nix-installer-action@main 47 50 with: 48 - nix_path: nixpkgs=channel:nixos-unstable 49 - extra_nix_config: | 50 - experimental-features = nix-command flakes 51 - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} 51 + determinate: true 52 + 52 53 - run: nix flake metadata 54 + 53 55 - run: | 54 - echo working on it soon! 55 - 56 + mkdir dist 57 + echo ::addgroup::Building amd64 minimal ISO file 58 + nix build .#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage --verbose --show-trace 59 + cp result/iso/*.iso ./out/ -rv 60 + echo ::endgroup 61 + 62 + - name: Upload as artifact 63 + uses: actions/upload-artifact@v4 64 + with: 65 + name: nixos-recoverykit-iso 66 + path: dist