feat: make virtualbox into specialisation

because i almost never need it
This commit is contained in:
Swarsel 2024-12-10 18:30:13 +01:00
parent c43bbd0dc4
commit 1ce57ea380
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 37 additions and 21 deletions

View file

@ -1,13 +1,21 @@
_:
{ lib, pkgs, ... }:
{
virtualisation.virtualbox = {
host = {
enable = true;
enableExtensionPack = true;
};
# leaving this here for future notice. setting guest.enable = true will make 'restarting sysinit-reactivation.target' take till timeout on nixos-rebuild switch
guest = {
enable = false;
specialisation = {
VBox.configuration = {
virtualisation.virtualbox = {
host = {
enable = true;
enableExtensionPack = true;
};
# leaving this here for future notice. setting guest.enable = true will make 'restarting sysinit-reactivation.target' take till timeout on nixos-rebuild switch
guest = {
enable = false;
};
};
# run an older kernel to provide compatibility with windows vm
boot.kernelPackages = lib.mkForce pkgs.linuxPackages;
};
};
}