{ lib, ... }: let swapPart = "/dev/sda2"; in { boot.loader.grub = { enable = true; devices = ["/dev/sda"]; }; boot.resumeDevice = swapPart; fileSystems."/" = lib.mkForce { device = "/dev/sda1"; fsType = "ext4"; }; fileSystems."/home" = lib.mkForce { device = "/dev/sda3"; fsType = "ext4"; }; swapDevices = [ { device = swapPart; } ]; }