From 2cc8f7539c380d957288405cd5043fc7b083b216 Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 14 Mar 2024 08:31:56 +0900 Subject: [PATCH] I need to re-org this --- nixos/hosts/osaka-linode-01/podman.nix | 4 ++++ nixos/hosts/piaware-rpi4/docker.nix | 18 ------------------ nixos/hosts/piaware-rpi4/podman.nix | 6 +++++- 3 files changed, 9 insertions(+), 19 deletions(-) delete mode 100644 nixos/hosts/piaware-rpi4/docker.nix diff --git a/nixos/hosts/osaka-linode-01/podman.nix b/nixos/hosts/osaka-linode-01/podman.nix index fb77cb10..c8ef2156 100644 --- a/nixos/hosts/osaka-linode-01/podman.nix +++ b/nixos/hosts/osaka-linode-01/podman.nix @@ -18,4 +18,8 @@ ]; environment.systemPackages = [ pkgs.ctop ]; + + # Add the docker telegraf listener + services.telegraf.extraConfig.inputs.docker = {}; + users.users.telegraf.extraGroups = [ "docker" ]; } diff --git a/nixos/hosts/piaware-rpi4/docker.nix b/nixos/hosts/piaware-rpi4/docker.nix deleted file mode 100644 index 5fc089ef..00000000 --- a/nixos/hosts/piaware-rpi4/docker.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ pkgs, ... }: { - boot.kernel.sysctl = { - "fs.inotify.max_user_watches" = 10485760; - "fs.inotify.max_user_instances" = 1024; - }; - - virtualisation.docker = { - enable = true; - enableOnBoot = true; - autoPrune.enable = true; - autoPrune.dates = "weekly"; - liveRestore = true; - }; - - networking.firewall.allowedTCPPorts = [ - 8080 30003 30005 - ]; -} \ No newline at end of file diff --git a/nixos/hosts/piaware-rpi4/podman.nix b/nixos/hosts/piaware-rpi4/podman.nix index 630f7e73..2bc5554c 100644 --- a/nixos/hosts/piaware-rpi4/podman.nix +++ b/nixos/hosts/piaware-rpi4/podman.nix @@ -18,4 +18,8 @@ ]; environment.systemPackages = [ pkgs.ctop ]; -} \ No newline at end of file + + # Add the docker telegraf listener + services.telegraf.extraConfig.inputs.docker = {}; + users.users.telegraf.extraGroups = [ "docker" ]; +}