From 56b5e17d9cc17f69e765ed16da0b211a6ec052ef Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 18 Jan 2024 14:04:35 +0900 Subject: [PATCH] Allow telegraf to read docker sock --- nixos/common/services/docker.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/common/services/docker.nix b/nixos/common/services/docker.nix index 99f1b49d..758bec04 100644 --- a/nixos/common/services/docker.nix +++ b/nixos/common/services/docker.nix @@ -22,4 +22,5 @@ # Add the docker telegraf listener services.telegraf.extraConfig.inputs.docker = {}; + users.users.telegraf.extraGroups = [ "docker" ]; }