mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-27 05:19:44 +01:00
8dba50616c
This is a moving target, but ugh, it seems all choices are unfulfilling.
16 lines
387 B
Bash
Executable file
16 lines
387 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
PS4=" $ "
|
|
|
|
# Ugh, I would have liked to do it through a simpler `nix-build`, but as this
|
|
# needs to set `NIX_PATH` for use of `<nixpkgs/*>` imports, this is the better
|
|
# way to go.
|
|
|
|
set -x
|
|
exec env -i \
|
|
NIXPKGS_ALLOW_UNFREE=1 \
|
|
NIX_PATH="nixpkgs=channel:nixos-unstable" \
|
|
"$(command -v nix-build)" \
|
|
system.nix -A config.system.build.sdImage "$@"
|