summaryrefslogtreecommitdiff
path: root/host/hardware/athena.nix
blob: 824f5aaf98bab4171b15aea375544c53bb5197d2 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ config, lib, pkgs, modulesPath, ... }:

{
  imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

  boot = {
    initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "sd_mod" ];
    initrd.kernelModules = [ "dm-snapshot" ];
    kernelModules = [ "kvm-intel" "fuse" "uinput" ];
    extraModulePackages = [ ];
    kernelParams = [ "nvidia-drm.modeset=1" ];

    loader = {
      systemd-boot.enable = true;
      efi.canTouchEfiVariables = true;
    };

    initrd.luks.devices = {
      "luks-af20ad1e-9b06-41ec-b442-4b9f57db4f86" = {
        device = "/dev/disk/by-uuid/af20ad1e-9b06-41ec-b442-4b9f57db4f86";
        allowDiscards = true;
      };
      "luks-162de169-79b8-46e9-ac32-5b60f6e0fdb5" = {
        device = "/dev/disk/by-uuid/162de169-79b8-46e9-ac32-5b60f6e0fdb5";
        allowDiscards = true;
        bypassWorkqueues = true;
      };
    };
  };

  fileSystems."/" =
    { device = "/dev/disk/by-uuid/0e887aeb-a331-41c4-946e-167407349808";
      fsType = "ext4";
    };

  fileSystems."/boot" =
    { device = "/dev/disk/by-uuid/2B78-6617";
      fsType = "vfat";
      options = [ "fmask=0077" "dmask=0077" ];
    };

  swapDevices = [ { device = "/dev/mapper/luks-162de169-79b8-46e9-ac32-5b60f6e0fdb5"; } ];
  boot.resumeDevice = "/dev/mapper/luks-162de169-79b8-46e9-ac32-5b60f6e0fdb5";

  networking.useDHCP = lib.mkDefault true;
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  hardware.ipu6 = { enable = true; platform = "ipu6ep"; };
}