nix #11
|
@ -1,22 +0,0 @@
|
|||
#/usr/bin/env sh
|
||||
|
||||
# Build a disk image for testing on pindakaas via sd card
|
||||
|
||||
if ! command -v nom-build
|
||||
then
|
||||
exec nix-shell -p nix-output-monitor --run $0
|
||||
fi
|
||||
|
||||
extra=""
|
||||
if [ "$(uname -m)" != "aarch64" ]
|
||||
then
|
||||
if [ ! -f /proc/sys/fs/binfmt_misc/qemu-aarch64 ]
|
||||
then
|
||||
echo "Use binfmt QEMU!"
|
||||
echo "https://nixos.wiki/wiki/NixOS_on_ARM#Compiling_through_binfmt_QEMU"
|
||||
exit 1
|
||||
fi
|
||||
extra="--argstr system aarch64-linux"
|
||||
fi
|
||||
nom-build '<nixpkgs/nixos>' -A config.system.build.sdImage \
|
||||
-I nixos-config=./pindakaas.nix $extra --show-trace
|
|
@ -2,11 +2,9 @@
|
|||
{
|
||||
imports = [
|
||||
<nixos-hardware/pine64/pinebook-pro>
|
||||
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
|
||||
./os/loader.nix
|
||||
];
|
||||
# nixos-hardware use latest kernel by default. This obviously runs quickly out of sync with zfs packages.
|
||||
# zfs packages are included despite me asking anything zfs, probably they're in the image for installation purposes?
|
||||
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
|
||||
networking.hostName = "pindakaas";
|
||||
|
|
Loading…
Reference in a new issue