added docker support for bluebubbles
This commit is contained in:
parent
5a36d71278
commit
5f8595bf60
|
@ -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" ];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user