mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-04 21:43:15 -06:00
make virtualbox a more proper module
This commit is contained in:
parent
38d3219ad4
commit
7bd5e95612
3 changed files with 16 additions and 3 deletions
|
@ -5,12 +5,12 @@
|
|||
}: {
|
||||
imports = with self.nixosModules; [
|
||||
nix-ld
|
||||
virtualbox
|
||||
restic
|
||||
docker
|
||||
];
|
||||
|
||||
oizys = {
|
||||
vbox.enable = true;
|
||||
desktop.enable = true;
|
||||
vpn.enable = true;
|
||||
languages = [
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
qtile
|
||||
hyprland
|
||||
|
||||
|
||||
virtualbox
|
||||
|
||||
gui
|
||||
|
||||
languages
|
||||
|
|
|
@ -1,7 +1,17 @@
|
|||
{...}: {
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.oizys.vbox;
|
||||
in {
|
||||
options.oizys.vbox.enable = mkEnableOption "enable virtualbox host";
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation.virtualbox = {
|
||||
host.enable = true;
|
||||
# guest.enable = true;
|
||||
};
|
||||
users.extraGroups.vboxusers.members = ["daylin"];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue