49 lines
1.2 KiB
Nix
49 lines
1.2 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,
|
||
lib,
|
||
pkgs,
|
||
...
|
||
}:
|
||
|
||
{
|
||
imports = [
|
||
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [
|
||
"xhci_pci"
|
||
"ehci_pci"
|
||
"ahci"
|
||
"usb_storage"
|
||
"sd_mod"
|
||
];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
# NVIDIA
|
||
services.xserver.videoDrivers = [ "nvidia" ];
|
||
hardware.nvidia.optimus_prime.enable = true;
|
||
hardware.nvidia.modesetting.enable = true;
|
||
hardware.nvidia.optimus_prime.nvidiaBusId = "PCI:1:0:0";
|
||
hardware.nvidia.optimus_prime.intelBusId = "PCI:0:2:0";
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/7bd3a09b-b188-4ce7-bdcc-d5c5087edc86";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/A25A-1786";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
swapDevices = [
|
||
{ device = "/dev/disk/by-uuid/156cd5e8-715c-48a5-9df4-14565227a6c9"; }
|
||
];
|
||
|
||
nix.maxJobs = lib.mkDefault 8;
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||
}
|