[Desktop/Developer] Add option to use bleeding-edge virtualbox

This commit is contained in:
Antoine Viallon 2023-04-27 18:09:45 +02:00
parent 139c8dec35
commit 809ec80ad4
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -5,6 +5,7 @@ let
in { in {
options.aviallon.developer = { options.aviallon.developer = {
enable = mkEnableOption "enable developer mode on this machine"; enable = mkEnableOption "enable developer mode on this machine";
virtualbox.unstable = mkEnableOption "use unstable virtualbox";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
system.nixos.tags = [ "developer" ]; system.nixos.tags = [ "developer" ];
@ -68,6 +69,13 @@ in {
host.enableHardening = false; # Causes kernel build failures host.enableHardening = false; # Causes kernel build failures
}; };
nixpkgs.overlays = []
++ optional cfg.virtualbox.unstable (final: prev: {
virtualbox = final.unstable.virtualbox;
virtualboxExtpack = final.unstable.virtualboxExtpack;
})
;
environment.extraOutputsToInstall = [ environment.extraOutputsToInstall = [
"doc" "info" "dev" "debug" "static" "doc" "info" "dev" "debug" "static"
]; ];