nix #11

Manually merged
geoffrey merged 113 commits from nix into main 2023-12-09 21:43:01 +01:00
2 changed files with 0 additions and 24 deletions
Showing only changes of commit 86f225ea67 - Show all commits

View file

@ -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

View file

@ -2,11 +2,9 @@
{ {
imports = [ imports = [
<nixos-hardware/pine64/pinebook-pro> <nixos-hardware/pine64/pinebook-pro>
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
./os/loader.nix ./os/loader.nix
]; ];
# nixos-hardware use latest kernel by default. This obviously runs quickly out of sync with zfs packages. # 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; boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
networking.hostName = "pindakaas"; networking.hostName = "pindakaas";