summaryrefslogtreecommitdiff
path: root/hosts/himeji/hardware-configuration.nix
blob: bc902f119063ca01617041e90494ac5526c2d5de (plain) (blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ modulesPath, lib, ... }:
{
  imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

  boot = {
    kernelParams = [ "console=tty" ];

    loader.grub = {
      efiSupport = true;
      efiInstallAsRemovable = true;
      device = "nodev";
    };

    initrd = {
      availableKernelModules = [
        "ata_piix"
        "uhci_hcd"
        "xen_blkfront"
        "ahci"
        "xhci_pci"
        "virtio_pci"
        "virtio_scsi"
        "sd_mod"
        "sr_mod"
      ];

      kernelModules = [
        "nvme"
        "virtio_gpu"
      ];
    };
  };

  fileSystems."/mnt/docker" = {
    device = "/dev/disk/by-id/scsi-0HC_Volume_101326440";
    fsType = "xfs";

    options = [
      "discard"
      "nofail"
      "defaults"
    ];
  };
}