sisyphus/nixos/modules/virtualisation/virtualbox/default.nix

30 lines
668 B
Nix
Raw Permalink Normal View History

2023-10-18 16:47:13 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.virtualisation.virtualbox;
in {
options.sisyphus.virtualisation.virtualbox.enable = lib.mkEnableOption "VirtualBox";
config = lib.mkIf cfg.enable {
virtualisation.virtualbox = {
host = {
enable = true;
enableExtensionPack = true;
};
guest = {
enable = true;
2024-06-02 20:49:04 +02:00
clipboard = true;
seamless = true;
2023-10-18 16:47:13 +02:00
};
};
2023-11-10 13:53:46 +01:00
2024-06-02 20:49:04 +02:00
# Define the group
2023-11-10 13:53:46 +01:00
users.groups.vboxusers = {};
sisyphus.users.wantedGroups = [
config.users.groups.vboxusers.name # The group we defined earlier
config.users.groups.dialout.name # Serial Port
2023-10-18 16:47:13 +02:00
];
};
}