diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 84b2c4f..699d924 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -11,4 +11,4 @@ jobs: with: name: nix-community signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - - run: ./deploy --build-only + - run: nix-build diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..418c5c5 --- /dev/null +++ b/default.nix @@ -0,0 +1,14 @@ +# Add derivations to be built from the cache to this file +{ system ? builtins.currentSystem }: +let + pkgs = import ./nix { inherit system; }; + + importNixOS = configuration: system: + (import "${toString pkgs.path}/nixos") { + inherit configuration system; + }; +in +pkgs.nix-community-infra // rec { + build01 = importNixOS ./build01/configuration.nix "x86_64-linux"; + build01-system = build01.system; +}