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