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

39 lines
774 B
Nix
Raw Normal View History

2025-09-14 14:12:14 +02:00
{
vinzenzNixosModules,
pkgs,
lib,
...
}:
2024-10-27 12:33:35 +01:00
{
2025-09-14 13:45:48 +02:00
imports = [ vinzenzNixosModules.amd-graphics ];
2023-09-11 21:49:40 +02:00
config = {
2024-10-26 14:59:00 +02:00
# amd cpu
2024-10-27 12:33:35 +01:00
boot.kernelModules = [ "kvm-amd" ];
boot = {
2024-10-27 12:33:35 +01:00
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"sd_mod"
]; # "usb_storage"
2025-09-14 14:01:42 +02:00
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;
2024-10-27 12:33:35 +01:00
swapDevices = [ ];
2024-10-26 17:30:11 +02:00
2025-09-14 14:12:14 +02:00
networking = {
networkmanager.enable = true;
useDHCP = lib.mkDefault true;
interfaces.eno1.wakeOnLan.enable = true;
};
hardware.bluetooth.enable = true;
2023-09-09 19:37:08 +02:00
};
}