Update hardware configuration for laptop setup

This commit is contained in:
Zephrynis
2025-10-26 22:50:45 +00:00
committed by GitHub
parent 83ac40baa3
commit 8ce8da5361

View File

@@ -1,34 +1,39 @@
# This file should be generated by running: # Do not modify this file! It was generated by nixos-generate-config
# nixos-generate-config --show-hardware-config > hardware-configuration.nix # and may be overwritten by future invocations. Please make changes
# # to /etc/nixos/configuration.nix instead.
# Run this command on your LAPTOP to get the correct hardware configuration
# Then copy the output here.
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ ]; imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
# PLACEHOLDER: Replace this entire file with your actual hardware configuration boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "uas" "sd_mod" "rtsx_pci_sdmmc" ];
# You can generate it by running the command mentioned above on your NixOS system
boot.initrd.availableKernelModules = [ ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" =
device = "/dev/disk/by-label/nixos"; { device = "/dev/disk/by-uuid/96e3003f-3f4f-4104-93e1-755f2922327c";
fsType = "ext4"; fsType = "ext4";
}; };
# Swap configuration fileSystems."/boot" =
# swapDevices = [ ]; { device = "/dev/disk/by-uuid/94ED-E007";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
# CPU microcode updates (uncomment for your CPU) swapDevices = [ ];
# hardware.cpu.intel.updateMicrocode = true;
# hardware.cpu.amd.updateMicrocode = true;
# Laptop power management # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
powerManagement.cpuFreqGovernor = "powersave"; # (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.eno1.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;
} }