summaryrefslogtreecommitdiff
path: root/hosts/ades/styx.nix
blob: ab00833401e82371d083b32688b845169f1ac805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ 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; }
  ];
}