Skip to content

Commit

Permalink
add a script to build the right config
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Sep 13, 2021
1 parent 72865ca commit dc771b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.sh
@@ -0,0 +1,12 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nixUnstable
set -euo pipefail

SYSTEM="${1:-}"

if test -z "$SYSTEM"; then
echo "USAGE: ${0:-./build.sh} SYSTEM"
exit 1
fi

nix build --experimental-features "nix-command flakes" ".#nixosConfigurations.${SYSTEM}.config.system.build.toplevel"

0 comments on commit dc771b6

Please sign in to comment.