2023-02-24 17:34:42 +01:00
|
|
|
|
# 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.
|
2024-07-10 23:02:54 +02:00
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
modulesPath,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2023-02-23 20:34:35 +01:00
|
|
|
|
|
|
|
|
|
{
|
2023-12-30 23:39:33 +01:00
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2023-02-23 20:34:35 +01:00
|
|
|
|
|
2024-07-10 22:12:06 +02:00
|
|
|
|
hardware.nvidia = {
|
|
|
|
|
open = true;
|
2024-09-24 16:00:23 +02:00
|
|
|
|
modesetting.enable = true;
|
|
|
|
|
nvidiaSettings = true;
|
|
|
|
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
|
|
|
|
powerManagement = {
|
|
|
|
|
enable = true;
|
|
|
|
|
finegrained = true;
|
|
|
|
|
};
|
2024-07-10 22:12:06 +02:00
|
|
|
|
prime = {
|
2024-09-24 16:00:23 +02:00
|
|
|
|
reverseSync.enable = true;
|
|
|
|
|
offload.enable = true;
|
2024-07-10 22:12:06 +02:00
|
|
|
|
sync.enable = false;
|
2024-09-24 16:00:23 +02:00
|
|
|
|
allowExternalGpu = true;
|
2023-02-27 16:57:43 +01:00
|
|
|
|
|
2024-07-10 22:12:06 +02:00
|
|
|
|
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
|
|
|
|
|
intelBusId = "PCI:0:2:0";
|
2023-02-27 16:57:43 +01:00
|
|
|
|
|
2024-07-10 22:12:06 +02:00
|
|
|
|
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
|
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
|
};
|
2023-02-27 16:57:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
2024-07-10 23:02:54 +02:00
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
|
"vmd"
|
|
|
|
|
"xhci_pci"
|
|
|
|
|
"ahci"
|
|
|
|
|
"nvme"
|
|
|
|
|
"usbhid"
|
|
|
|
|
"sd_mod"
|
|
|
|
|
"sr_mod"
|
|
|
|
|
];
|
2023-02-24 17:34:42 +01:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
2024-07-10 23:02:54 +02:00
|
|
|
|
boot.kernelModules = [
|
|
|
|
|
"kvm-intel"
|
|
|
|
|
"nouveau"
|
|
|
|
|
];
|
2023-02-24 17:34:42 +01:00
|
|
|
|
boot.extraModulePackages = [ ];
|
2023-02-23 20:34:35 +01:00
|
|
|
|
|
2023-08-09 23:00:46 +02:00
|
|
|
|
fileSystems = {
|
2023-12-01 20:09:56 +01:00
|
|
|
|
"/" = {
|
2024-03-21 18:36:32 +01:00
|
|
|
|
device = "/dev/disk/by-uuid/ec151a68-5886-4747-b5e3-2f9bdb89e162";
|
2024-03-21 18:17:54 +01:00
|
|
|
|
fsType = "btrfs";
|
2024-03-21 18:36:32 +01:00
|
|
|
|
options = [ "subvol=@" ];
|
2023-02-23 20:34:35 +01:00
|
|
|
|
};
|
2024-02-06 19:40:33 +01:00
|
|
|
|
"/boot" = {
|
2024-03-21 18:36:32 +01:00
|
|
|
|
device = "/dev/disk/by-uuid/8EED-43E3";
|
2023-02-23 20:34:35 +01:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
2023-08-09 23:00:46 +02:00
|
|
|
|
"/media/gaming" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/4038F97238F966F6";
|
|
|
|
|
fsType = "ntfs";
|
2024-07-10 23:02:54 +02:00
|
|
|
|
options = [
|
|
|
|
|
"rw"
|
|
|
|
|
"uid=1000"
|
|
|
|
|
];
|
2023-08-09 23:00:46 +02:00
|
|
|
|
};
|
|
|
|
|
};
|
2023-02-23 20:34:35 +01:00
|
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
2023-07-06 11:49:34 +02:00
|
|
|
|
#nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2023-07-27 15:34:15 +02:00
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
2024-01-11 00:19:11 +01:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2023-02-23 20:34:35 +01:00
|
|
|
|
}
|