Add thinkpad host

This commit is contained in:
Yan Lin 2025-09-12 21:47:40 +02:00
parent bb38eee42f
commit 6595af21c7
6 changed files with 659 additions and 0 deletions

View file

@ -0,0 +1,50 @@
# Disko configuration for ThinkPad P14s Gen 2
# Simple single-disk setup with EFI boot and ext4 root partition
{
disko.devices = {
disk = {
main = {
type = "disk";
# Update this to match your actual disk
# Use 'lsblk' or 'fdisk -l' to find your disk identifier
device = "/dev/nvme0n1"; # Common for NVMe SSDs in laptops
content = {
type = "gpt";
partitions = {
# EFI System Partition
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "defaults" "umask=0077" ];
};
};
# Swap partition (optional, adjust size as needed)
swap = {
size = "16G"; # Match your RAM size for hibernation support
content = {
type = "swap";
randomEncryption = true;
};
};
# Root partition - takes remaining space
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [ "defaults" "noatime" ];
};
};
};
};
};
};
};
}