added virtualbox
This commit is contained in:
parent
07605c96a4
commit
8045323643
3 changed files with 33 additions and 1 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
# Host-specific core modules
|
# Host-specific core modules
|
||||||
../../../core/zfs.nix
|
../../../core/zfs.nix
|
||||||
../../../core/gaming.nix
|
../../../core/gaming.nix
|
||||||
|
../../../core/virtualbox.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
32
core/virtualbox.nix
Normal file
32
core/virtualbox.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{ user, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
# Name of the group needed to use VirtualBox
|
||||||
|
vboxgroup = "vmusers";
|
||||||
|
|
||||||
|
in {
|
||||||
|
|
||||||
|
# Permissions configuration
|
||||||
|
users = {
|
||||||
|
|
||||||
|
# Creates the group providing access to VirtualBox
|
||||||
|
extraGroups."${vboxgroup}".members = [ "user-with-access-to-virtualbox" ];
|
||||||
|
|
||||||
|
# Adds primary user to vboxusers group
|
||||||
|
users."${user}".extraGroups = [ "vboxusers" ];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
# VirtualBox configuration
|
||||||
|
virtualisation.virtualbox = {
|
||||||
|
|
||||||
|
# Enables VirtualBox with this machine as the host
|
||||||
|
host.enable = true;
|
||||||
|
|
||||||
|
# Needed for USB2 and USB3 passthrough
|
||||||
|
host.enableExtensionPack = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -138,7 +138,6 @@ in {
|
||||||
gnome-calculator # GTK calculator
|
gnome-calculator # GTK calculator
|
||||||
appimage-run # Runs appimages
|
appimage-run # Runs appimages
|
||||||
file-roller # Archive manager
|
file-roller # Archive manager
|
||||||
#virtualbox # Virtual machine
|
|
||||||
nautilus # GTK File manager
|
nautilus # GTK File manager
|
||||||
swayimg # Terminal based image viewer
|
swayimg # Terminal based image viewer
|
||||||
zathura # PDF viewer
|
zathura # PDF viewer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue