mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Desktop/Developer] Add option to use bleeding-edge virtualbox
This commit is contained in:
parent
139c8dec35
commit
809ec80ad4
1 changed files with 8 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ let
|
|||
in {
|
||||
options.aviallon.developer = {
|
||||
enable = mkEnableOption "enable developer mode on this machine";
|
||||
virtualbox.unstable = mkEnableOption "use unstable virtualbox";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
system.nixos.tags = [ "developer" ];
|
||||
|
|
@ -68,6 +69,13 @@ in {
|
|||
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 = [
|
||||
"doc" "info" "dev" "debug" "static"
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue