summaryrefslogtreecommitdiff
path: root/hosts/local/master/hardware-configuration.nix
blob: a20ea6e4b9a00617d6b60bef072b8b7ec1b45691 (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
# 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" "sd_mod"];
  boot.initrd.kernelModules = [];
  boot.kernelModules = ["kvm-intel"];
  boot.extraModulePackages = [];

  fileSystems."/" = {
    device = "/dev/disk/by-uuid/3f1343f2-1ba3-4c57-b95e-bb808d3dffd3";
    fsType = "ext4";
  };

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

  # fileSystems."/home/y/sata" =
  #   { device = "/dev/disk/by-uuid/1f689125-e290-4904-9046-f67b51d05c6b";
  #     fsType = "ext4";
  #   };

  swapDevices = [
    {device = "/dev/disk/by-uuid/e34d7981-458b-462a-b551-007bce4f40f9";}
  ];

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