Initial NixOS config

This commit is contained in:
2025-11-19 08:42:21 +01:00
commit 61adc10c49
14 changed files with 1645 additions and 0 deletions

View 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;
}