biscuit/Makefile

19 lines
677 B
Makefile
Raw Normal View History

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 $@
2024-07-21 20:02:17 +00:00
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"