Skip to content

Commit b524797

Browse files
committed
fix: Switch to nix installer from cachix
1 parent 7e51d20 commit b524797

3 files changed

Lines changed: 24 additions & 12 deletions

File tree

.github/workflows/check.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
19+
1920
- name: Install Nix
20-
uses: DeterminateSystems/nix-installer-action@main
21+
uses: cachix/install-nix-action@v31
2122
with:
22-
logger: pretty
23-
24-
- name: Nix Magic Cache
25-
uses: DeterminateSystems/flakehub-cache-action@main
23+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
24+
enable_kvm: true
25+
extra_nix_config: |
26+
keep-outputs = true
27+
keep-failed = true
2628
2729
- name: Check the root Flake
2830
run: nix flake check --print-build-logs

.github/workflows/evaluate-home-manager.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23+
2324
- name: Install Nix
24-
uses: DeterminateSystems/nix-installer-action@main
25+
uses: cachix/install-nix-action@v31
2526
with:
26-
logger: pretty
27-
28-
- name: Nix Magic Cache
29-
uses: DeterminateSystems/flakehub-cache-action@main
27+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
28+
enable_kvm: true
29+
extra_nix_config: |
30+
keep-outputs = true
31+
keep-failed = true
3032
3133
- name: Evaluate Home Manager configurations
3234
run: nix build -f .config/nix/parts/programs/ciHomeManagerConfigurations.nix --print-build-logs

.github/workflows/update-flakes.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,28 @@ jobs:
1616
with:
1717
app-id: ${{ secrets.APP_ID }}
1818
private-key: ${{ secrets.APP_PRIVATE_KEY }}
19+
1920
- name: Checkout repository
2021
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2122
with:
2223
token: ${{ steps.app-token.outputs.token }}
2324
persist-credentials: false
25+
2426
- name: Install Nix
25-
uses: DeterminateSystems/nix-installer-action@main
27+
uses: cachix/install-nix-action@v31
2628
with:
27-
logger: pretty
29+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
30+
enable_kvm: true
31+
extra_nix_config: |
32+
keep-outputs = true
33+
keep-failed = true
34+
2835
- name: Make changes to pull request
2936
run: |
3037
nix flake update
3138
cd .config/nix
3239
nix flake update
40+
3341
- name: Create Pull Request
3442
id: cpr
3543
uses: peter-evans/create-pull-request@v7

0 commit comments

Comments
 (0)