mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 13:43:56 -05:00
50 lines
1.1 KiB
Nix
50 lines
1.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"
|
||
"sd_mod"
|
||
"usb_storage"
|
||
"usbhid"
|
||
"xhci_pci"
|
||
];
|
||
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;
|
||
}
|