mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
hardware/nvidia: add @ to constraint on busIDType
On some configurations, the only known syntax that works requires the `@` character, such as `intelBusId = "0@0:2:0";` and `nvidiaBusId = "1@1:0:0";` [1]. [1]. https://discourse.nixos.org/t/struggling-with-nvidia-prime/13794/4
This commit is contained in:
parent
87ac6eda56
commit
ce2e4707b7
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ let
|
|||
primeEnabled = syncCfg.enable || offloadCfg.enable;
|
||||
nvidiaPersistencedEnabled = cfg.nvidiaPersistenced;
|
||||
nvidiaSettings = cfg.nvidiaSettings;
|
||||
busIDType = types.strMatching "([[:print:]]+\:[0-9]{1,3}\:[0-9]{1,2}\:[0-9])?";
|
||||
busIDType = types.strMatching "([[:print:]]+[\:\@][0-9]{1,3}\:[0-9]{1,2}\:[0-9])?";
|
||||
in
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue