mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 07:01:53 -05:00
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|||
|
# and may be overwritten by future invocations. Please make changes
|
|||
|
# to /etc/nixos/configuration.nix instead.
|
|||
|
{
|
|||
|
config,
|
|||
|
inputs,
|
|||
|
lib,
|
|||
|
modulesPath,
|
|||
|
pkgs,
|
|||
|
...
|
|||
|
}: {
|
|||
|
imports = [
|
|||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|||
|
];
|
|||
|
|
|||
|
boot = {
|
|||
|
initrd = {
|
|||
|
availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod"];
|
|||
|
kernelModules = [];
|
|||
|
};
|
|||
|
kernelModules = ["kvm-amd"];
|
|||
|
};
|
|||
|
|
|||
|
hardware = {
|
|||
|
nvidia = {
|
|||
|
# Modesetting is required.
|
|||
|
modesetting.enable = true;
|
|||
|
nvidiaSettings = true;
|
|||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|||
|
};
|
|||
|
opengl = {
|
|||
|
driSupport = true;
|
|||
|
driSupport32Bit = true;
|
|||
|
};
|
|||
|
};
|
|||
|
services.xserver.videoDrivers = ["nvidia"];
|
|||
|
|
|||
|
networking.useDHCP = lib.mkDefault true;
|
|||
|
|
|||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|||
|
hardware.cpu.amd.updateMicrocode =
|
|||
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|||
|
}
|