added docker support for bluebubbles

This commit is contained in:
caleb 2024-03-15 23:21:06 -04:00
parent 5a36d71278
commit 5f8595bf60

View File

@ -1,7 +1,16 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
podman-compose
docker-compose docker-compose
#bluebubbles dependencies
dnsmasq
bridge-utils
flex
bison
iptables
libguestfs
]; ];
virtualisation = { virtualisation = {
@ -17,6 +26,25 @@
setSocketVariable = true; setSocketVariable = true;
}; };
}; };
# enable libvirt
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd];
};
};
};
};
users.users.caleb = {
extraGroups = [ "libvirtd" "docker" ];
}; };
users.extraGroups.docker.members = [ "caleb" ];
} }