nvidia: fix backlight

This commit is contained in:
2026-04-21 17:48:52 +03:00
parent e52ee5b09f
commit 88f9d0bc57
3 changed files with 46 additions and 12 deletions
+18 -2
View File
@@ -7,7 +7,23 @@
];
options = {
host.laptop = lib.mkEnableOption "laptop mode";
host = {
laptop = lib.mkEnableOption "laptop mode";
nvidia.prime = {
enable = lib.mkEnableOption "NVIDIA PRIME offload for hybrid graphics";
intelBusId = lib.mkOption {
type = lib.types.str;
default = "PCI:0:2:0";
description = "Intel/iGPU Bus ID used by NVIDIA PRIME.";
};
nvidiaBusId = lib.mkOption {
type = lib.types.str;
default = "PCI:1:0:0";
description = "NVIDIA dGPU Bus ID used by NVIDIA PRIME.";
};
};
};
};
config = {
@@ -22,4 +38,4 @@
i18n.defaultLocale = lib.mkDefault "ru_RU.UTF-8";
system.stateVersion = "23.05";
};
}
}