nix-configs

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

ilias-hardware.nix (804B)


      1 { config, lib, modulesPath, ... }:
      2 
      3 {
      4   imports =
      5     [ (modulesPath + "/installer/scan/not-detected.nix")
      6     ];
      7 
      8   boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
      9   boot.initrd.kernelModules = [ ];
     10   boot.kernelModules = [ "kvm-intel" ];
     11   boot.extraModulePackages = [ ];
     12 
     13   swapDevices =
     14     [ { device = "/dev/disk/by-uuid/3397e636-91db-44ae-9572-923e4b3acbbe"; }
     15     ];
     16 
     17   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     18   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     19 
     20   # Bootloader
     21   boot.loader.systemd-boot.enable = true;
     22   boot.loader.efi.canTouchEfiVariables = true;
     23 
     24   # Networking, use DHCP
     25   networking.networkmanager.enable = true;
     26   networking.useDHCP = lib.mkDefault true;
     27 
     28 }