summaryrefslogtreecommitdiff
path: root/neko/hardware-configuration.nix
blob: bc4e040b7bd43b45b0db1a291707e29467fb2738 (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
# Do not modify this file!  It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations.  Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:

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

  boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" ];
  boot.initrd.kernelModules = [ "i915" ];
  boot.kernelModules = [ "kvm-intel" ];

  # efi partition
  fileSystems."/boot" =
    { device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part1";
      fsType = "vfat";
      neededForBoot = true;
    };

  # vms
  fileSystems."/home/cullmann/vms" =
    { device = "vpool/vms";
      fsType = "zfs";
      depends = [ "/home" ];
    };

  # projects
  fileSystems."/home/cullmann/projects" =
    { device = "ppool/projects";
      fsType = "zfs";
      depends = [ "/home" ];
    };

  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

  # intel graphics
  hardware.graphics.extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ];
}