mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-21 00:49:27 +03:00
11 lines
249 B
Nix
11 lines
249 B
Nix
![]() |
{ lib, config, ... }:
|
||
|
let
|
||
|
inherit (config.boot) kernelPackages;
|
||
|
inherit (config.services.xserver) videoDrivers;
|
||
|
in
|
||
|
{
|
||
|
boot.extraModulePackages = lib.mkIf (lib.elem "virtualbox" videoDrivers) [
|
||
|
kernelPackages.virtualboxGuestAdditions
|
||
|
];
|
||
|
}
|