summaryrefslogtreecommitdiff
path: root/configuration/hardware.nix
blob: bac2abd53115e832805f4af5189637098c4de5e8 (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
{ config, lib, modulesPath, ... }:

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

  boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelParams = [ "kvm-amd" "snd_hda_intel.probe_mask=1" ];
  boot.extraModulePackages = [ ];

  fileSystems."/".device = "/dev/nvme0n1p2";
  fileSystems."/".fsType = "ext4";

  fileSystems."/boot".device = "/dev/nvme0n1p1";
  fileSystems."/boot".fsType = "vfat";
  fileSystems."/boot".options = [ "fmask=0022" "dmask=0022" ];

  fileSystems."/media/drive".device = "/dev/sda2";
  fileSystems."/media/drive".fsType = "btrfs";

  swapDevices = [{ device = "/dev/nvme0n1p3"; }];

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