Compare commits

...

4 Commits

Author SHA1 Message Date
18aa1fc67e typo 2024-07-29 15:42:39 +00:00
42a0750aaa readme 2024-07-29 12:05:10 +00:00
7eab6eb695 fix: resize root partition after dd 2024-07-29 11:36:08 +00:00
603c5cd15d typo 2024-07-29 08:33:17 +00:00
3 changed files with 26 additions and 2 deletions

View File

@ -12,4 +12,5 @@ $(IMAGE):
flash: $(IMAGE) $(TARGET)
sudo dd if=$(IMAGE) of=$(TARGET)
sudo parted -sf $(TARGET) p
sudo partprobe
sudo parted -sf $(TARGET) resizepart 2 100%

23
README.md Normal file
View File

@ -0,0 +1,23 @@
# NixOS image for ThinkPad T14s Gen 6
## Usage
Build
git clone https://code.dumpstack.io/etc/nixos-image-thinkpad-t14s-gen6
cd nixos-image-thinkpad-t14s-gen6
make TARGET=/dev/sdX flash
Prebuilt
TARGET=/dev/sdX
wget https://github.com/jollheef/nixos-image-thinkpad-t14s-gen6/releases/download/v0.1.0/nixos-thinkpad-t14s-gen6-1aea2f8.img.xz
xz -d nixos-thinkpad-t14s-gen6-1aea2f8.img.xz
sudo dd if=nixos-thinkpad-t14s-gen6-1aea2f8.img of=${TARGET}
sudo partprobe
sudo parted -sf ${TARGET} resizepart 2 100%
## Notes
- Use the front left USB-C port.
- nmtui is available for managing Wi-Fi connections.

View File

@ -25,7 +25,7 @@ let
dtb = "${linuxPackages_x1e.kernel}/dtbs/qcom/x1e78100-lenovo-thinkpad-t14s.dtb";
dtbHash = builtins.hashFile "md5" dtb;
dtbName = "x1e80100-${dtbHash}.dtb";
dtbName = "x1e78100-${dtbHash}.dtb";
in {
boot = {
kernelPackages = linuxPackages_x1e;