From d765db533246ba11dae51d7a77a62723766630d6 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 16 Apr 2024 12:13:42 +0200 Subject: [PATCH] Fix string coercion issue with clean-audit-log --- system/shared/security/auditd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/shared/security/auditd.nix b/system/shared/security/auditd.nix index eaa4780..3691d6f 100644 --- a/system/shared/security/auditd.nix +++ b/system/shared/security/auditd.nix @@ -35,7 +35,7 @@ in { services."clean-audit-log" = { script = '' set -eu - if [[ $(stat -c "%s" /var/log/audit/audit.log) -gt ${cfg.autoPrune.size} ]]; then + if [[ $(stat -c "%s" /var/log/audit/audit.log) -gt ${builtins.toString cfg.autoPrune.size} ]]; then echo "Clearing Audit Log"; rm -rvf /var/log/audit/audit.log; echo "Done!"