biscuit/Makefile
Daniel Barlow b3e505a1e9 using lk2nd/extlinux so nixos can manage /boot
and there is no need to update it by dd#'ing the partition image
2025-05-11 23:59:44 +01:00

19 lines
677 B
Makefile

DEVICE=root@biscuit.lan
# NFLAGS=-I nixpkgs=../nixpkgs
.PHONY: toplevel android-bootimg default update android-recovery android-extlinux-boot
default toplevel:
nix-build $(NFLAGS) -A outputs.$@ -o $@
android-bootimg android-recovery android-extlinux-boot:
nix-build $(NFLAGS) -A outputs.android.$@ -o $@
lk2nd:
nix-build $(NFLAGS) ../mobile-nixos --argstr device motorola-harpia -A pkgs.pkgsBuildBuild.lk2nd.msm8916 -o lk2nd
update: toplevel
nix-copy-closure --to $(DEVICE) -v --include-outputs ./toplevel
ssh $(DEVICE) "nix-env --profile /nix/var/nix/profiles/system --set `readlink toplevel` && /nix/var/nix/profiles/system/bin/switch-to-configuration switch"