Convert Virtualbox to KVM
This commit is contained in:
parent
6618fbee9d
commit
5804ff31ff
5 changed files with 22 additions and 12 deletions
|
@ -1,7 +1,17 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.frogeye.dev.docker {
|
||||
virtualisation.docker.enable = true;
|
||||
users.users.geoffrey.extraGroups = [ "docker" ];
|
||||
};
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.frogeye.dev.docker {
|
||||
virtualisation.docker.enable = true;
|
||||
users.users.geoffrey.extraGroups = [ "docker" ];
|
||||
})
|
||||
(lib.mkIf config.frogeye.dev.vm {
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
users.extraGroups.libvirtd.members = [ "geoffrey" ];
|
||||
})
|
||||
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue