ALPHA: wire is a tool to deploy nixos systems
wire.althaea.zone/
1---
2name: Set up Nix
3description: |
4 Sets up the Nix environment for wire, removing unnecessary bloat and installing Nix along with proper
5 substituters being set
6runs:
7 using: "composite"
8 steps:
9 - name: Generate nix.conf
10 shell: bash
11 id: config
12 run: |
13 {
14 echo 'config<<EOF'
15 echo "system-features = nixos-test benchmark big-parallel kvm"
16
17 echo "substituters = https://cache.nixos.org?priority=1 https://cache.althaea.zone?priority=2 https://cache.garnix.io?priority=3"
18 echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= cache.althaea.zone:BelRpa863X9q3Y+AOnl5SM7QFzre3qb+5I7g2s/mqHI="
19
20 echo EOF
21 } >> "$GITHUB_OUTPUT"
22 - uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15
23 with:
24 nix_path: nixpkgs=channel:nixos-unstable
25 extra_nix_config: ${{ steps.config.outputs.config }}
26 - name: Sanity check nix.conf
27 if: ${{ runner.debug == '1' }}
28 shell: bash
29 run: cat /etc/nix/nix.conf