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

{
  imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
  boot = {
    initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
    initrd.kernelModules = [ ];
    kernelParams = [ "kvm-amd" "snd_hda_intel.probe_mask=1" ];
    extraModulePackages = [ ];
  };
  boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest;
  fileSystems = {
    "/" = {
      device = "UUID=721879c7-fed3-458d-bace-6a7e0a4f96b4";
      fsType = "ext4";
    };
    "/boot" = {
      device = "UUID=91CC-4E7B";
      fsType = "vfat";
      options = [ "fmask=0022" "dmask=0022" ];
    };
    "/media/drive" = {
      device = "UUID=bb91fa5b-6d49-4d30-86c1-28014b6d5c09";
      fsType = "btrfs";
    };
  };
  swapDevices = [
    {
      device = "/dev/disk/by-uuid/203c900b-100e-4352-aa6e-947cc4001271";
    }
  ];
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}