nix/nixos/hosts/osaka-linode-01/podman.nix
2024-03-14 08:31:56 +09:00

25 lines
623 B
Nix

{ lib, pkgs, ... }: {
# Runtime
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true;
defaultNetwork.settings = {
# Required for container networking to be able to use names.
dns_enabled = true;
};
};
virtualisation.oci-containers.backend = "podman";
# Containers
imports = [
./podman/derp.nix
];
environment.systemPackages = [ pkgs.ctop ];
# Add the docker telegraf listener
services.telegraf.extraConfig.inputs.docker = {};
users.users.telegraf.extraGroups = [ "docker" ];
}