modules/nixos/common/telegraf: fix nix 2.24
This commit is contained in:
parent
bf1a521290
commit
dbe42374d1
2 changed files with 7 additions and 1 deletions
modules
|
@ -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 ];
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ let
|
|||
hostInfo = pkgs.writeShellApplication {
|
||||
name = "host-info";
|
||||
runtimeInputs = [
|
||||
pkgs.nixVersions.nix_2_18
|
||||
pkgs.nix
|
||||
pkgs.gnused
|
||||
pkgs.jq
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue