From 3c8a4f2380086703c41e015641dd2de6558cacf3 Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Tue, 1 Oct 2024 12:34:32 +0200 Subject: [PATCH] feat: virtualbox --- hosts/default/configuration.nix | 12 ++++++++---- modules/nixos/main-user.nix | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 14e4f1a..15b6f10 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -133,6 +133,7 @@ ripgrep rustup spotify + teams thunderbird unzip usbutils @@ -162,11 +163,14 @@ }; }; - virtualisation.docker = { - enable = true; - rootless = { + virtualisation = { + virtualbox.host.enable = true; + docker = { enable = true; - setSocketVariable = true; + rootless = { + enable = true; + setSocketVariable = true; + }; }; }; diff --git a/modules/nixos/main-user.nix b/modules/nixos/main-user.nix index 6b83a5d..6b92065 100644 --- a/modules/nixos/main-user.nix +++ b/modules/nixos/main-user.nix @@ -23,7 +23,7 @@ in { users.users.${cfg.username} = { isNormalUser = true; initialPassword = "12345"; - extraGroups = ["docker" "input" "networkmanager" "wheel"]; + extraGroups = ["docker" "input" "networkmanager" "wheel" "vboxusers"]; description = "Stefan"; shell = pkgs.zsh; };