mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 09:36:33 +01:00
59 lines
1.4 KiB
Nix
59 lines
1.4 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,
|
||
modulesPath,
|
||
...
|
||
}:
|
||
|
||
{
|
||
hardware.nvidia = {
|
||
open = true;
|
||
modesetting.enable = true;
|
||
nvidiaSettings = true;
|
||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||
powerManagement = {
|
||
enable = true;
|
||
finegrained = true;
|
||
};
|
||
prime = {
|
||
reverseSync.enable = true;
|
||
offload = {
|
||
enable = true;
|
||
enableOffloadCmd = true;
|
||
};
|
||
sync.enable = false;
|
||
allowExternalGpu = true;
|
||
|
||
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
|
||
intelBusId = "PCI:0:2:0";
|
||
|
||
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
|
||
nvidiaBusId = "PCI:1:0:0";
|
||
};
|
||
};
|
||
|
||
fileSystems = {
|
||
"/" = {
|
||
device = "/dev/disk/by-uuid/ec151a68-5886-4747-b5e3-2f9bdb89e162";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@" ];
|
||
};
|
||
"/boot" = {
|
||
device = "/dev/disk/by-uuid/8EED-43E3";
|
||
fsType = "vfat";
|
||
};
|
||
"/media/gaming" = {
|
||
device = "/dev/disk/by-uuid/4038F97238F966F6";
|
||
fsType = "ntfs";
|
||
options = [
|
||
"rw"
|
||
"uid=1000"
|
||
];
|
||
};
|
||
};
|
||
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||
}
|