diff --git a/hosts/nixos/thinkpad/disk-config.nix b/hosts/nixos/thinkpad/disk-config.nix index f1773a1..22ae116 100644 --- a/hosts/nixos/thinkpad/disk-config.nix +++ b/hosts/nixos/thinkpad/disk-config.nix @@ -1,13 +1,12 @@ # Disko configuration for ThinkPad P14s Gen 2 -# Simple single-disk setup with EFI boot and ext4 root partition +# Reflects the actual installed system configuration +# NOTE: This uses UUIDs from the existing installation { 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 + device = "/dev/nvme0n1"; content = { type = "gpt"; partitions = { @@ -19,27 +18,18 @@ type = "filesystem"; format = "vfat"; mountpoint = "/boot"; - mountOptions = [ "defaults" "umask=0077" ]; + mountOptions = [ "fmask=0077" "dmask=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 + # Swap is not configured on this system root = { size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; - mountOptions = [ "defaults" "noatime" ]; }; }; }; diff --git a/hosts/nixos/thinkpad/hardware-configuration.nix b/hosts/nixos/thinkpad/hardware-configuration.nix index afa74a0..f653a12 100644 --- a/hosts/nixos/thinkpad/hardware-configuration.nix +++ b/hosts/nixos/thinkpad/hardware-configuration.nix @@ -13,18 +13,10 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/97aa0a15-1b4a-43b6-b424-65d1926cec73"; - fsType = "ext4"; - }; + # Filesystems are managed by disko configuration + # No filesystem declarations needed here - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/7C9B-24EC"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = [ ]; + # No swap devices configured here - handled by disko # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's