Begin testing remote builds
This commit is contained in:
parent
1a4e5103b2
commit
7aa39a1110
7 changed files with 109 additions and 68 deletions
|
@ -1,18 +1,19 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config = lib.mkIf (lib.elem "nvidia" config.services.xserver.videoDrivers) {
|
||||
boot.kernelParams = [ "nvidia_drm.fbdev=1" ]; # Framebuffer fixes TTY access
|
||||
boot.kernelParams = [
|
||||
"nouveau.config=NvGspRm=1" # Use high power mode for Nouveau
|
||||
"nvidia_drm.fbdev=1" # Fix framebuffer
|
||||
];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = false;
|
||||
open = true;
|
||||
};
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = false;
|
||||
open = true;
|
||||
};
|
||||
|
||||
nixpkgs.allowUnfreePackages = [ "nvidia-x11" ];
|
||||
nixpkgs.allowUnfreePackages = [ "nvidia-x11" ];
|
||||
|
||||
specialisation.nouveau.configuration.config.services.xserver.videoDrivers = lib.mkForce [ "nouveau" ];
|
||||
} // {
|
||||
boot.kernelParams = [ "nouveau.config=NvGspRm=1" ];
|
||||
specialisation = lib.mkIf (lib.elem "nvidia" config.services.xserver.videoDrivers) {
|
||||
nouveau.configuration.config.services.xserver.videoDrivers = lib.mkForce [ "nouveau" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue