added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
30
nyx/hosts/prometheus/system.nix
Normal file
30
nyx/hosts/prometheus/system.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) optionals mkIf mkForce;
|
||||
|
||||
dev = config.modules.device;
|
||||
in {
|
||||
config = {
|
||||
hardware = {
|
||||
nvidia = mkIf (builtins.elem dev.gpu ["nvidia" "hybrid-nv"]) {
|
||||
open = mkForce false;
|
||||
|
||||
prime = {
|
||||
offload.enable = true;
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelParams = optionals ((dev.cpu == "intel") && (dev.gpu != "hybrid-nv")) [
|
||||
"i915.enable_fbc=1"
|
||||
"i915.enable_psr=2"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue