Skip to content

Commit

Permalink
ci: restore ci.nix
Browse files Browse the repository at this point in the history
The cachix action doesn't support flakes yet
See cachix/cachix-action#47
  • Loading branch information
jakobkukla committed Mar 19, 2024
1 parent 392fa46 commit ab41511
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cachix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# FIXME: This is necessary since we used 'nix profile' before
installCommand: "nix profile install --accept-flake-config nixpkgs#cachix"
- run: nix-fast-build --skip-cached --no-nom --flake ".#nixosConfigurations.matebook.config.system.build.toplevel"
- run: nix-fast-build --skip-cached --no-nom ./ci.nix
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
id: build
run: |
nix flake update
nix-fast-build --skip-cached --no-nom --flake ".#nixosConfigurations.matebook.config.system.build.toplevel"
nix-fast-build --skip-cached --no-nom ./ci.nix
- name: Commit flake.lock on success
if: steps.build.outcome == 'success'
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
6 changes: 6 additions & 0 deletions ci.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
let
outputs = builtins.getFlake (toString ./.);
pkgs = outputs.inputs.nixpkgs;
drvs = pkgs.lib.collect pkgs.lib.isDerivation outputs.nixosConfigurations.matebook.config.system.build.toplevel;
in
drvs

0 comments on commit ab41511

Please sign in to comment.