29 lines
623 B
Nix
29 lines
623 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";
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|