Skip to content

Commit 0c270d4

Browse files
committed
add eval github action
1 parent 4a5aec8 commit 0c270d4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/nix-build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: nix build .
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Install Nix
20+
uses: cachix/install-nix-action@v27
21+
with:
22+
extra_nix_config: |
23+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
24+
experimental-features = nix-command flakes
25+
26+
- name: nix eval .#nixosConfigurations.nixos-desktop
27+
run: nix eval .#nixosConfigurations.nixos-desktop
28+
29+
- name: nix eval .#nixosConfigurations.nixos-laptop
30+
run: nix eval .#nixosConfigurations.nixos-laptop
31+
32+
- name: nix eval .#nixosConfigurations.nixos-steamdeck
33+
run: nix eval .#nixosConfigurations.nixos-steamdeck

0 commit comments

Comments
 (0)