added hw-conf
This commit is contained in:
parent
61335826af
commit
8b380261ca
3 changed files with 24 additions and 1 deletions
|
@ -35,7 +35,6 @@
|
|||
modules = [
|
||||
./hosts/lenar
|
||||
./hosts/base
|
||||
inputs.disko.nixosModules.disko
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
inputs.disko.nixosModules.disko
|
||||
./disko.nix
|
||||
];
|
||||
|
||||
networking.hostName = "lenar"; # Define your hostname.
|
||||
|
|
22
hosts/lenar/hardware-configuration.nix
Normal file
22
hosts/lenar/hardware-configuration.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
Loading…
Reference in a new issue