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