48 lines
833 B
Nix
48 lines
833 B
Nix
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
../shared/fs-layouts/single-disk-btrfs.nix
|
|
];
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = [
|
|
"nvme"
|
|
"ahci"
|
|
"xhci_pci"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
];
|
|
|
|
initrd.kernelModules = [ ];
|
|
kernelModules = [ ];
|
|
extraModulePackages = [ ];
|
|
};
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware = {
|
|
bluetooth.enable = true;
|
|
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
nvidia-container-toolkit.enable = true;
|
|
|
|
nvidia = {
|
|
open = true;
|
|
modesetting.enable = true;
|
|
};
|
|
|
|
graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [ mesa.opencl ];
|
|
};
|
|
};
|
|
}
|