forked from Bos55/nix-config
Compare commits
1 commit
4103c488b3
...
1626a1c311
| Author | SHA1 | Date | |
|---|---|---|---|
| 1626a1c311 |
1 changed files with 2 additions and 9 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -16,8 +16,7 @@ jobs:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: "List hosts"
|
- name: "List hosts"
|
||||||
id: hosts
|
id: hosts
|
||||||
run: |
|
run: nix eval .#nixosConfigurations --apply builtins.attrNames --json
|
||||||
nix eval .#nixosConfigurations --apply builtins.attrNames --json
|
|
||||||
outputs:
|
outputs:
|
||||||
hosts: ${{ steps.hosts.outputs }}
|
hosts: ${{ steps.hosts.outputs }}
|
||||||
|
|
||||||
|
|
@ -31,11 +30,5 @@ jobs:
|
||||||
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }}
|
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Define host"
|
- run: echo "${{ matrix.hostname }}"
|
||||||
env:
|
|
||||||
hostname: ${{ matrix.hostname }}
|
|
||||||
run: |
|
|
||||||
echo "${hostname}"
|
|
||||||
- run: |
|
|
||||||
nixos-rebuild build --flake ".#${hostname}"
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue