modules/nixos/common/telegraf: fix nix 2.24

This commit is contained in:
zowoq 2024-11-26 18:36:58 +10:00
parent bf1a521290
commit dbe42374d1
2 changed files with 7 additions and 1 deletions
modules
nixos/common
shared

View file

@ -5,5 +5,11 @@
../../shared/telegraf.nix
];
# error: creating directory '/var/empty/.cache/nix': Operation not permitted
users.users.telegraf = {
home = "/var/lib/telegraf";
createHome = true;
};
networking.firewall.allowedTCPPorts = [ 9273 ];
}

View file

@ -8,7 +8,7 @@ let
hostInfo = pkgs.writeShellApplication {
name = "host-info";
runtimeInputs = [
pkgs.nixVersions.nix_2_18
pkgs.nix
pkgs.gnused
pkgs.jq
];