Skip to content
Snippets Groups Projects
storage003-hardware.nix 1.02 KiB
Newer Older
# 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")
    ];

Jehad's avatar
Jehad committed
  boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-intel" ];
  boot.extraModulePackages = [ ];

  fileSystems."/" =
Jehad's avatar
Jehad committed
    { device = "/dev/disk/by-uuid/8f88c0f1-3aef-41ec-bfd7-55b4ba6c1341";
      fsType = "ext4";
    };

  fileSystems."/boot" =
Jehad's avatar
Jehad committed
    { device = "/dev/disk/by-uuid/23DC-4051";
      fsType = "vfat";
    };
Jehad's avatar
Jehad committed
  swapDevices =
    [ { device = "/dev/disk/by-uuid/b02af75a-ea3a-47cf-ad40-c6611ee4dc09"; }
Jehad's avatar
Jehad committed
  fileSystems."/storage" = {
     device = "root";
     fsType = "zfs";
   };
  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;