3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #140539 from polykernel/bus-id-constraints

hardware/nvidia: stricter constraints on PCI bus-id.
This commit is contained in:
Guillaume Girol 2022-04-17 11:10:39 +00:00 committed by GitHub
commit d5438d2b95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ in
};
hardware.nvidia.prime.nvidiaBusId = mkOption {
type = types.str;
type = types.strMatching "[[:print:]]+\:[0-9]{1,3}\:[0-9]{1,2}\:[0-9]";
default = "";
example = "PCI:1:0:0";
description = ''
@ -78,7 +78,7 @@ in
};
hardware.nvidia.prime.intelBusId = mkOption {
type = types.str;
type = types.strMatching "[[:print:]]+\:[0-9]{1,3}\:[0-9]{1,2}\:[0-9]";
default = "";
example = "PCI:0:2:0";
description = ''
@ -88,7 +88,7 @@ in
};
hardware.nvidia.prime.amdgpuBusId = mkOption {
type = types.str;
type = types.strMatching "[[:print:]]+\:[0-9]{1,3}\:[0-9]{1,2}\:[0-9]";
default = "";
example = "PCI:4:0:0";
description = ''