nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

minerva-hardware.nix (878B)


      1 { config, lib, modulesPath, ... }:
      2 
      3 {
      4   imports =
      5     [ (modulesPath + "/installer/scan/not-detected.nix")
      6     ];
      7 
      8   boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
      9   boot.initrd.kernelModules = [ ];
     10   boot.kernelModules = [ "kvm-intel" ];
     11   boot.extraModulePackages = [ ];
     12 
     13   fileSystems."/" =
     14     { device = "/dev/disk/by-uuid/e9802357-1ee2-4e24-bf94-580c96205012";
     15       fsType = "ext4";
     16     };
     17 
     18   swapDevices = [ ];
     19 
     20   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     21   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     22 
     23   # Bootloader
     24   boot.loader.grub.enable = true;
     25   boot.loader.grub.device = "/dev/sda";
     26   boot.loader.grub.useOSProber = true;
     27 
     28   # Networking, use DHCP
     29   networking.networkmanager.enable = true;
     30   networking.useDHCP = lib.mkDefault true;
     31 
     32 }