refactor virtualbox

This commit is contained in:
Cyryl Płotnicki 2019-07-07 08:56:14 +01:00
parent fa7b2e3b09
commit 1d2de0e46d
3 changed files with 20 additions and 12 deletions

View file

@ -32,6 +32,7 @@
loader.efi.canTouchEfiVariables = true;
};
time.hardwareClockInLocalTime = true;
time.timeZone = "Europe/London";
hardware.bumblebee.enable = true;
@ -73,16 +74,11 @@
];
};
virtualisation.virtualbox.host = {
enable = true;
enableExtensionPack = true;
enableHardening = false; #needed for 3D acceleration
};
imports = [
/etc/nixos/hardware-configuration.nix
../boot.nix
../common.nix
../gfx-intel.nix
../virtualbox.nix
];
}

View file

@ -20,16 +20,11 @@
};
time.timeZone = "Europe/London";
virtualisation.virtualbox.host = {
enable = true;
enableExtensionPack = true;
enableHardening = false; #needed for 3D acceleration
};
imports = [
/etc/nixos/hardware-configuration.nix
../boot.nix
../common.nix
../gfx-intel.nix
../virtualbox.nix
];
}

17
nixos/virtualbox.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, pkgs, ... }:
let
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
in
{
nixpkgs.config = {
packageOverrides = pkgs: {
unstable = import unstableTarball {
config = config.nixpkgs.config;
};
};
};
virtualisation.virtualbox.host = {
enable = true;
enableExtensionPack = true;
};
}