Skip to content

Commit

Permalink
ci: push to cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
kmein committed May 16, 2024
1 parent 3ea66b6 commit 5c7a8b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/niveum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@ jobs:
run: sudo apt-get install -y qemu-user-static
if: ${{ matrix.system == 'ful' }}
- name: Install Nix (ARM)
uses: cachix/install-nix-action@v16
uses: cachix/install-nix-action@v20
if: ${{ matrix.system == 'ful' }}
with:
extra_nix_config: |
system = aarch64-linux
- name: Install Nix (x86_64)
uses: cachix/install-nix-action@v16
uses: cachix/install-nix-action@v20
if: ${{ matrix.system != 'ful' }}
- name: nixos-rebuild dry-build
- uses: cachix/cachix-action@v14
with:
name: kmein
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: nixos-rebuild build
run: |
# remove secrets: ref https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule/36593218
git submodule deinit -f secrets
Expand All @@ -34,4 +38,4 @@ jobs:
cat secrets.txt | while read -r path; do touch $path; done
git add secrets
nix run nixpkgs#nixos-rebuild -- dry-build --flake $GITHUB_WORKSPACE#${{matrix.system}}
nix run nixpkgs#nixos-rebuild -- build --flake $GITHUB_WORKSPACE#${{matrix.system}}
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
wallpapers.flake = false;
};

nixConfig = {
extra-substituters = [ "https://kmein.cachix.org" ];
extra-trusted-public-keys = [ "kmein.cachix.org-1:rsJ2b6++VQHJ1W6rGuDUYsK/qUkFA3bNpO6PyEyJ9Ls=" ];
};

outputs = inputs @ {
self,
nixpkgs,
Expand Down

0 comments on commit 5c7a8b2

Please sign in to comment.