39 lines
799 B
Nix
39 lines
799 B
Nix
{ pkgs, ... }:
|
|
{
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/648c6539-892c-40d7-8b07-23fe760df02a";
|
|
fsType = "ext4";
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/1D62-C30E";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
};
|
|
|
|
hardware = {
|
|
enableRedistributableFirmware = true;
|
|
cpu.amd.updateMicrocode = true;
|
|
opengl = {
|
|
enable = true;
|
|
driSupport32Bit = true;
|
|
extraPackages = [pkgs.vaapiVdpau];
|
|
};
|
|
nvidia.prime = {
|
|
offload = {
|
|
enable = true;
|
|
enableOffloadCmd = true;
|
|
};
|
|
amdgpuBusId = "PCI:05:00:0";
|
|
nvidiaBusId = "PCI:01:00:0";
|
|
};
|
|
};
|
|
|
|
services = {
|
|
xserver.videoDrivers = ["nvidia"];
|
|
tlp.enable = true;
|
|
fstrim.enable = true;
|
|
};
|
|
}
|