Initial NixOS config
This commit is contained in:
41
hardware-configuration.nix
Normal file
41
hardware-configuration.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
# This is a template hardware configuration file
|
||||
# On a fresh install, this will be replaced by the actual hardware configuration
|
||||
# generated by nixos-generate-config or copied from /etc/nixos/hardware-configuration.nix
|
||||
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
# This is a placeholder - it will be replaced during bootstrap
|
||||
# Your actual hardware configuration will be generated based on your system
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-label/boot";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enable GPU support (uncomment what matches your hardware)
|
||||
# hardware.opengl.extraPackages = with pkgs; [
|
||||
# intel-media-driver # For Intel GPUs
|
||||
# vaapiIntel # For Intel GPUs
|
||||
# vaapiVdpau # For AMD/NVIDIA
|
||||
# ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Reference in New Issue
Block a user