Skip to content

Commit

Permalink
New build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Jun 17, 2024
1 parent 4075063 commit 14a3205
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build all hosts
name: nix build

on:
push:
Expand Down Expand Up @@ -28,7 +28,9 @@ jobs:
name: joinemm
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Run nix-fast-build
- name: build all hosts
run: |
nix build .#nixosConfigurations.zeus.config.system.build.toplevel
for host in `nix flake show --json | jq '.nixosConfigurations | keys[]'`; do
nix build .#nixosConfigurations.$host.config.system.build.toplevel | cachix push joinemm
done
8 changes: 4 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@
homeManagerModules = import ./home-modules;

nixosConfigurations = {
x1 = inputs.nixpkgs.lib.nixosSystem {
x1 = nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules = [./hosts/x1/configuration.nix];
};
zeus = inputs.nixpkgs.lib.nixosSystem {
zeus = nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules = [./hosts/zeus/configuration.nix];
};
hetzner = inputs.nixpkgs.lib.nixosSystem {
hetzner = nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules = [./hosts/hetzner/configuration.nix];
};
monitoring = inputs.nixpkgs.lib.nixosSystem {
monitoring = nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules = [./hosts/monitoring/configuration.nix];
};
Expand Down

0 comments on commit 14a3205

Please sign in to comment.