nixconf/systems/x86_64-linux/gallifrey/hardware.nix

44 lines
1.3 KiB
Nix

{
config,
lib,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"ehci_pci" "ahci" "xhci_pci" "sd_mod" "ohci_pci"
"usb_storage" "usbhid"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/4f33f0b4-32c3-48a9-8052-92fd51ace8af";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4060-6415";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/943c804b-0f95-4e99-98f3-cb63c6d37a15"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (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.eno3.wakeOnLan.enable = true;
# networking.interfaces.enp3s0f0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}