nixos-configs/nixosConfigurations/vinzenz-pc2/hardware.nix

31 lines
631 B
Nix
Raw Normal View History

{ pkgs, lib, ... }:
2025-09-14 14:12:14 +02:00
{
# amd cpu
boot.kernelModules = [ "kvm-amd" ];
boot = {
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"sd_mod"
]; # "usb_storage"
kernelPackages = pkgs.linuxPackages_zen;
supportedFilesystems = [ "btrfs" ];
initrd.supportedFilesystems = [ "btrfs" ];
loader.efi.efiSysMountPoint = "/boot";
};
2024-10-26 17:30:11 +02:00
fileSystems = import ./fstab.nix;
swapDevices = [ ];
2025-09-14 14:12:14 +02:00
networking = {
networkmanager.enable = true;
useDHCP = lib.mkDefault true;
interfaces.eno1.wakeOnLan.enable = true;
2023-09-09 19:37:08 +02:00
};
hardware.bluetooth.enable = true;
}