chn: xserver drivers to per host basis
This commit is contained in:
@@ -21,6 +21,5 @@
|
||||
steam
|
||||
];
|
||||
|
||||
# explicitly override videoDrivers (nvidia doesnt like us on nixbook )
|
||||
services.xserver.videoDrivers = lib.mkForce [ "intel" ];
|
||||
services.xserver.videoDrivers = [ "intel" ];
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
@@ -7,20 +6,27 @@
|
||||
../../modules
|
||||
./gaming.nix
|
||||
./wireguard.nix
|
||||
./nvidia.nix
|
||||
];
|
||||
|
||||
networking.hostName = "tuxcomp";
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
|
||||
hardware.tuxedo-rs = {
|
||||
enable = true;
|
||||
tailor-gui.enable = true;
|
||||
};
|
||||
hardware.tuxedo-drivers.enable = true;
|
||||
|
||||
# adds a `stretch_aspect` scaler (Valve/gamescope#927) and lets `--rt` use the
|
||||
# rtprio limit from modules/gaming.nix instead of CAP_SYS_NICE.
|
||||
#nixpkgs.overlays = [
|
||||
# nixpkgs.overlays = [
|
||||
# (_final: prev: {
|
||||
# gamescope = prev.gamescope.overrideAttrs (old: {
|
||||
# patches = (old.patches or [ ]) ++ [ ../../patches/gamescope-stretch-aspect.patch ];
|
||||
# });
|
||||
# })
|
||||
#];
|
||||
# ];
|
||||
}
|
||||
|
||||
|
||||
20
hosts/tuxcomp/nvidia.nix
Normal file
20
hosts/tuxcomp/nvidia.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
services.xserver.videoDrivers = lib.mkForce [
|
||||
"nvidia"
|
||||
"amdgpu"
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
reverseSync.enable = true;
|
||||
amdgpuBusId = "PCI:6@0:0:0";
|
||||
nvidiaBusId = "PCI:1@0:0:0";
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
open = true;
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user