mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 05:24:34 +00:00
Add system-wide dependencies for virtualbox
This commit is contained in:
parent
82a07127b7
commit
1d49318179
|
@ -3,5 +3,6 @@
|
||||||
./misc.nix
|
./misc.nix
|
||||||
./physlock.nix
|
./physlock.nix
|
||||||
./thunar.nix
|
./thunar.nix
|
||||||
|
./virtualbox.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
20
system/roles/workstation/programs/virtualbox.nix
Normal file
20
system/roles/workstation/programs/virtualbox.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
cfg = config.myOptions.home-manager.programs.applications.virtualbox;
|
||||||
|
deviceType = config.myOptions.device.roles.type;
|
||||||
|
acceptedTypes = ["laptop" "desktop"];
|
||||||
|
in {
|
||||||
|
config = mkIf ((builtins.elem deviceType acceptedTypes) && cfg.enable) {
|
||||||
|
virtualisation.virtualbox.host = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Don't include the Qt dependency and GUI app,
|
||||||
|
# if gui is desired, it can be installed separately on a per-user basis
|
||||||
|
headless = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue