diff --git a/systems/x86_64-linux/bicboye/hardware-intel.nix b/systems/x86_64-linux/bicboye/hardware-intel.nix deleted file mode 100644 index 35058b8..0000000 --- a/systems/x86_64-linux/bicboye/hardware-intel.nix +++ /dev/null @@ -1,122 +0,0 @@ -_: { - boot = { - initrd = { - availableKernelModules = [ - "xhci_pci" - "ahci" - "ehci_pci" - "nvme" - "usbhid" - "usb_storage" - "sd_mod" - ]; - luks.devices."cryptroot".device = "/dev/disk/by-uuid/e570c2be-65df-4208-9cac-a03de08a6209"; - }; - kernelModules = ["kvm-intel"]; - }; - - fileSystems = { - "/" = { - device = "/dev/disk/by-uuid/a1b57a56-16d4-45ea-bac3-daeacd3dbcb2"; - fsType = "btrfs"; - options = [ - "defaults" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@" - ]; - neededForBoot = true; # required - }; - - "/home" = { - device = "/dev/disk/by-uuid/a1b57a56-16d4-45ea-bac3-daeacd3dbcb2"; - fsType = "btrfs"; - options = [ - "defaults" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@home" - ]; - }; - - "/.snapshots" = { - device = "/dev/disk/by-uuid/a1b57a56-16d4-45ea-bac3-daeacd3dbcb2"; - fsType = "btrfs"; - options = [ - "defaults" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@snapshots" - ]; - }; - - "/var/log" = { - device = "/dev/disk/by-uuid/a1b57a56-16d4-45ea-bac3-daeacd3dbcb2"; - fsType = "btrfs"; - options = [ - "defaults" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@log" - ]; - }; - - "/etc/nixos" = { - device = "/dev/disk/by-uuid/a1b57a56-16d4-45ea-bac3-daeacd3dbcb2"; - fsType = "btrfs"; - options = [ - "defaults" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@nixos-config" - ]; - }; - - "/var/cache" = { - device = "/dev/disk/by-uuid/a1b57a56-16d4-45ea-bac3-daeacd3dbcb2"; - fsType = "btrfs"; - options = [ - "defaults" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@cache" - ]; - }; - - "/boot" = { - device = "/dev/disk/by-uuid/B731-09A3"; - fsType = "vfat"; - options = ["fmask=0022" "dmask=0022"]; - }; - - # "/storage/immich" = { - # device = "/dev/disk/by-uuid/bae65b7a-4f08-4b0d-963c-72e71bfcff46"; - # fsType = "btrfs"; - # options = [ - # "defaults" - # "compress-force=zstd" - # "noatime" - # "user" - # ]; - # }; - - # TODO: delete btrfs subvolume - # "/storage/syncthing" = { - # device = "/dev/disk/by-uuid/e3a4c251-a3e2-4b5e-a63b-70f53b51836a"; - # fsType = "btrfs"; - # options = [ - # "defaults" - # "compress-force=zstd" - # "noatime" - # "user" - # ]; - # }; - }; - swapDevices = []; -} diff --git a/systems/x86_64-linux/thonkpad/thonkpad-12.nix b/systems/x86_64-linux/thonkpad/thonkpad-12.nix deleted file mode 100644 index 49ebb2f..0000000 --- a/systems/x86_64-linux/thonkpad/thonkpad-12.nix +++ /dev/null @@ -1,136 +0,0 @@ -_: { - boot = { - initrd = { - availableKernelModules = [ - "xhci_pci" - "thunderbolt" - "nvme" - "usb_storage" - "sd_mod" - ]; - luks.devices."cryptroot".device = "/dev/disk/by-uuid/9de352ea-128f-4d56-a720-36d81dfd9b92"; - }; - kernelModules = [ - "kvm-intel" - # "thinkpad_acpi" - "iwlwifi" - "xe" - ]; - kernelParams = [ - "xe.force_probe=7d45" - # "resume_offset=2465529" - # "intel_pstate=active" - # "thinkpad_acpi.fan_control=1" - ]; - # resumeDevice = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - }; - - fileSystems = { - "/" = { - device = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - fsType = "btrfs"; - options = [ - "defaults" - "autodefrag" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@" - ]; - neededForBoot = true; - }; - - "/home" = { - device = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - fsType = "btrfs"; - options = [ - "defaults" - "autodefrag" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@home" - ]; - }; - - "/.snapshots" = { - device = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - fsType = "btrfs"; - options = [ - "defaults" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@snapshots" - ]; - }; - - "/var/log" = { - device = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - fsType = "btrfs"; - options = [ - "defaults" - "autodefrag" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@log" - ]; - }; - - "/var/cache" = { - device = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - fsType = "btrfs"; - options = [ - "defaults" - "autodefrag" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@cache" - ]; - }; - - "/etc/nixos" = { - device = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - fsType = "btrfs"; - options = [ - "defaults" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@nix-config" - ]; - }; - - "/nix" = { - device = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - fsType = "btrfs"; - options = [ - "defaults" - "autodefrag" - "compress-force=zstd" - "noatime" - "ssd" - "subvol=@nix-store" - ]; - }; - - # ref: https://sawyershepherd.org/post/hibernating-to-an-encrypted-swapfile-on-btrfs-with-nixos/ - # "/swap" = { - # device = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; - # fsType = "btrfs"; - # options = [ - # "subvol=@swap" - # "noatime" - # ]; - # }; - - "/boot" = { - device = "/dev/disk/by-uuid/B9A2-7AA6"; - fsType = "vfat"; - options = ["fmask=0022" "dmask=0022"]; - }; - }; - swapDevices = []; -}