2024-03-13 03:48:40 +01:00
|
|
|
{ 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 ];
|
2024-03-14 00:31:56 +01:00
|
|
|
|
|
|
|
# Add the docker telegraf listener
|
|
|
|
services.telegraf.extraConfig.inputs.docker = {};
|
|
|
|
users.users.telegraf.extraGroups = [ "docker" ];
|
2024-03-13 03:48:40 +01:00
|
|
|
}
|