add virtualbox, enable for onizuka
This commit is contained in:
parent
9ee7e4279c
commit
400980e6a0
3 changed files with 17 additions and 0 deletions
|
|
@ -7,5 +7,6 @@
|
||||||
./librewolf
|
./librewolf
|
||||||
./shells
|
./shells
|
||||||
./syncthing
|
./syncthing
|
||||||
|
./virtualbox
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
nixosModules/apps/virtualbox/default.nix
Normal file
15
nixosModules/apps/virtualbox/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.virtualbox = {
|
||||||
|
enable = lib.mkEnableOption "Enables virtualbox";
|
||||||
|
extra-users = lib.mkOption { default = []; };
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.virtualbox.enable {
|
||||||
|
virtualisation.virtualbox.host.enable = true;
|
||||||
|
users.extraGroups.vboxusers.members = [
|
||||||
|
config.user.name
|
||||||
|
] ++ config.virtualbox.extra-users;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
zsh.setDefault = true;
|
zsh.setDefault = true;
|
||||||
syncthing.enable = true;
|
syncthing.enable = true;
|
||||||
|
virtualbox.enable = true;
|
||||||
|
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
aagl.enable = true;
|
aagl.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue