From 153422f74b1ed5cae37c9424514a9e9d1f79acb4 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 11 Jul 2015 19:44:12 +0200 Subject: move old stuff --- old/modules/lass/virtualbox.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 old/modules/lass/virtualbox.nix (limited to 'old/modules/lass/virtualbox.nix') diff --git a/old/modules/lass/virtualbox.nix b/old/modules/lass/virtualbox.nix new file mode 100644 index 0000000..0262031 --- /dev/null +++ b/old/modules/lass/virtualbox.nix @@ -0,0 +1,22 @@ +{ config, pkgs, ... }: + +let + mainUser = config.users.extraUsers.mainUser; + +in { + services.virtualboxHost.enable = true; + + users.extraUsers = { + virtual = { + name = "virtual"; + description = "user for running VirtualBox"; + home = "/home/virtual"; + useDefaultShell = true; + extraGroups = [ "vboxusers" "audio" ]; + createHome = true; + }; + }; + security.sudo.extraConfig = '' + ${mainUser.name} ALL=(virtual) NOPASSWD: ALL + ''; +} -- cgit v1.2.3