adyya-flake/cluster/virtualisation.mod.nix
2025-02-18 20:23:07 +02:00

29 lines
621 B
Nix

{
cluster.modules = [
{
users.users.emv.extraGroups = [
"podman"
];
}
];
sucrose.modules = [
(
{
pkgs,
config,
...
}: {
environment.systemPackages = [pkgs.podman-compose];
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = config.networking.hostName == "glucose"; # TODO: fix this stupid shit ssometime -e
};
oci-containers.backend = "podman";
};
}
)
];
}