first commit

This commit is contained in:
2024-07-28 23:28:50 +00:00
commit c3a0fdac00
8 changed files with 325 additions and 0 deletions

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
COMMIT := $(shell git rev-parse --short HEAD)
IMAGE := nixos-thinkpad-t14s-gen6-$(COMMIT).img
TARGET := /dev/sdX
$(IMAGE).xz: $(IMAGE)
xz -k $(IMAGE)
$(IMAGE):
sudo ./scripts/make-image.sh $(IMAGE)
flash: $(IMAGE) $(TARGET)
sudo dd if=$(IMAGE) of=$(TARGET)
sudo parted -sf $(TARGET) p