mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -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; [
|
imports = with self.nixosModules; [
|
||||||
nix-ld
|
nix-ld
|
||||||
virtualbox
|
|
||||||
restic
|
restic
|
||||||
docker
|
docker
|
||||||
];
|
];
|
||||||
|
|
||||||
oizys = {
|
oizys = {
|
||||||
|
vbox.enable = true;
|
||||||
desktop.enable = true;
|
desktop.enable = true;
|
||||||
vpn.enable = true;
|
vpn.enable = true;
|
||||||
languages = [
|
languages = [
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
qtile
|
qtile
|
||||||
hyprland
|
hyprland
|
||||||
|
|
||||||
|
|
||||||
|
virtualbox
|
||||||
|
|
||||||
gui
|
gui
|
||||||
|
|
||||||
languages
|
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 = {
|
virtualisation.virtualbox = {
|
||||||
host.enable = true;
|
host.enable = true;
|
||||||
# guest.enable = true;
|
|
||||||
};
|
};
|
||||||
users.extraGroups.vboxusers.members = ["daylin"];
|
users.extraGroups.vboxusers.members = ["daylin"];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue