1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19:42 +01:00

chore: Add switcheroo service for Dual GPU

This commit is contained in:
Kourosh Tafreshi 2023-11-20 16:35:37 +02:00 committed by mergify[bot]
parent fc126177f6
commit c3abafb01c

View file

@ -1,6 +1,9 @@
{ lib, pkgs, ... }: {
imports = [ ../../../../common/gpu/nvidia/prime.nix ];
#D-Bus service to check the availability of dual-GPU
services.switcherooControl.enable = lib.mkDefault true;
hardware = {
nvidia = {
prime = {