diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2022-03-01 06:54:12 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2022-04-01 07:09:26 +0900 |
commit | e92c05349c6053df22cf21eb9f424251ba2b114f (patch) | |
tree | c545f68e95ef9d37ad28a66e2eb174c9b9727182 /nixos/modules/virtualisation | |
parent | 3cc8ea28d1c20320b674d3d4131d02e4df8df5fa (diff) |
nixos/logrotate: convert to freeform
using freeform is the new standard way of using modules and should replace extraConfig. In particular, this will allow us to place a condition on mails
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/azure-agent.nix | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/nixos/modules/virtualisation/azure-agent.nix b/nixos/modules/virtualisation/azure-agent.nix index bd8c7f8c1eea3..e2425b44eac4a 100644 --- a/nixos/modules/virtualisation/azure-agent.nix +++ b/nixos/modules/virtualisation/azure-agent.nix @@ -146,15 +146,11 @@ in services.logrotate = { enable = true; - extraConfig = '' - /var/log/waagent.log { - compress - monthly - rotate 6 - notifempty - missingok - } - ''; + settings."/var/log/waagent.log" = { + compress = true; + frequency = "monthly"; + rotate = 6; + }; }; systemd.targets.provisioned = { |