summaryrefslogtreecommitdiff
path: root/nixos/hosts/box/hardware-configuration.nix
blob: 305694a30d91ac0b81d3593da3d582d373ec8044 (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
{ config, lib, pkgs, modulesPath, ... }:

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

  boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-amd" ];
  boot.extraModulePackages = [ ];

  fileSystems."/" = {
    device = "/dev/disk/by-uuid/86a14b4c-9a4e-4b03-a04e-6d4bfb887d12";
    fsType = "ext4";
    options = [ "noatime" ];
  };

  fileSystems."/mnt/box" = {
    device = "/dev/disk/by-uuid/70da8a3c-5590-4267-8361-1ec111f909da";
    fsType = "ext4";
    options = [ "noatime" ];
  };

  swapDevices = [ ];

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