Convert Virtualbox to KVM

This commit is contained in:
Geoffrey Frogeye 2024-10-01 15:17:11 +02:00
parent 6618fbee9d
commit 5804ff31ff
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
5 changed files with 22 additions and 12 deletions

View file

@ -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" ];
})
];
}