Skip to content

Commit

Permalink
fix(workflows)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikreinert committed Dec 6, 2023
1 parent c7d3ca4 commit 4443f9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flake-language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: macos-latest
runs-on: ubuntu-latest
strategy:
matrix:
template:
Expand Down
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ build-darwin system="x86_64": (clean-template "darwin")
nix build --json --no-link --print-build-logs \
"/tmp/kickstart.nix/darwin#darwinConfigurations.{{ system }}.config.system.build.toplevel"
build-language template profile="default" system="x86_64": (clean-template template)
build-language template profile="default": (clean-template template)
#!/usr/bin/env bash
DERIVATION=$(nix build --json --no-link --print-build-logs ".#example-{{ template }}")
OUTPUT=$(echo $DERIVATION | jq -r ".[0].outputs.out")
cp -r $OUTPUT/* /tmp/kickstart.nix/{{ template }}
cp --no-preserve=mode -r $OUTPUT/* /tmp/kickstart.nix/{{ template }}
nix build --json --no-link --print-build-logs "/tmp/kickstart.nix/{{ template }}#{{ profile }}"
build-nixos-desktop system="x86_64" desktop="gnome": (clean-template "nixos-desktop")
#!/usr/bin/env bash
DERIVATION=$(nix build --json --no-link --print-build-logs ".#example-nixos-desktop-{{ desktop }}")
OUTPUT=$(echo $DERIVATION | jq -r ".[0].outputs.out")
cp -r $OUTPUT/* /tmp/kickstart.nix/nixos-desktop
cp --no-preserve=mode -r $OUTPUT/* /tmp/kickstart.nix/nixos-desktop
nix build --json --no-link --print-build-logs \
"/tmp/kickstart.nix/nixos-desktop#nixosConfigurations.{{ system }}.config.system.build.toplevel"
build-nixos-minimal system="x86_64": (clean-template "nixos-minimal")
#!/usr/bin/env bash
DERIVATION=$(nix build --json --no-link --print-build-logs ".#example-nixos-minimal")
OUTPUT=$(echo $DERIVATION | jq -r ".[0].outputs.out")
cp -r $OUTPUT/* /tmp/kickstart.nix/nixos-minimal
cp --no-preserve=mode -r $OUTPUT/* /tmp/kickstart.nix/nixos-minimal
nix build --json --no-link --print-build-logs \
"/tmp/kickstart.nix/nixos-minimal#nixosConfigurations.{{ system }}.config.system.build.toplevel"

0 comments on commit 4443f9b

Please sign in to comment.