0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

Merge master into staging-next

This commit is contained in:
github-actions[bot] 2025-01-10 18:04:54 +00:00 committed by GitHub
commit f2e88eaafe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
102 changed files with 700 additions and 368 deletions

View file

@ -113,6 +113,19 @@ in
}
];
warnings =
lib.mkIf
(
(lib.elem "nvidia" config.services.xserver.videoDrivers)
&& !config.hardware.nvidia.open
&& (lib.versionOlder "551" (
lib.versions.major (lib.getVersion config.hardware.nvidia.package)
))
)
[
"Using Sway with Nvidia driver version <= 550 may result in a broken system. Configure hardware.nvidia.package to use a newer version."
];
environment = {
systemPackages = lib.optional (cfg.package != null) cfg.package ++ cfg.extraPackages;