mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +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 {
|
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"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue