some fixes
This commit is contained in:
parent
bf35832817
commit
1adcfe0a12
7 changed files with 240 additions and 24 deletions
|
|
@ -1,17 +1,28 @@
|
|||
# Hardware-specific configuration for the notebook.
|
||||
# fileSystems and swap are declared by disko (notebook-disko.nix).
|
||||
# Regenerate this file with: nixos-generate-config --no-filesystems --show-hardware-config
|
||||
{ config, lib, modulesPath, ... }:
|
||||
# Notebook hardware configuration.
|
||||
#
|
||||
# This file is REPLACED automatically during installation.
|
||||
# The installer runs:
|
||||
# nixos-generate-config --no-filesystems --show-hardware-config
|
||||
# and writes the output here before calling nixos-install.
|
||||
#
|
||||
# After installation, commit the generated file:
|
||||
# git add modules/_hardware/notebook-hardware.nix
|
||||
# git commit -m "add notebook hardware config"
|
||||
#
|
||||
# To regenerate on the installed system:
|
||||
# nixos-generate-config --no-filesystems --show-hardware-config \
|
||||
# > ~/repos/nixos/modules/_hardware/notebook-hardware.nix
|
||||
{ lib, modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "ums_realtek" "sd_mod" "sr_mod" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
# Filled in by the installer. These are placeholder values that allow
|
||||
# the flake to evaluate before the real hardware is detected.
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.kernelModules = [];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue