nix-configs

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

arcadia-hardware.nix (705B)


      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" "usbhid" "usb_storage" "sd_mod" ];
      9   boot.initrd.kernelModules = [ ];
     10   boot.kernelModules = [ "kvm-intel" ];
     11   boot.extraModulePackages = [ ];
     12 
     13   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     14   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     15 
     16   # Bootloader
     17   boot.loader.systemd-boot.enable = true;
     18   boot.loader.efi.canTouchEfiVariables = true;
     19 
     20   # Networking, use DHCP
     21   networking.networkmanager.enable = true;
     22   networking.useDHCP = lib.mkDefault true;
     23 
     24 }