From 306087355c6993ec77da154d6e297bfcbb5fba72 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 30 Jul 2023 14:57:45 -0700 Subject: [PATCH] Set uid & gid for clamav --- lib/fudo/mail/clamav.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/fudo/mail/clamav.nix b/lib/fudo/mail/clamav.nix index 1ac4cd0..191d7b0 100644 --- a/lib/fudo/mail/clamav.nix +++ b/lib/fudo/mail/clamav.nix @@ -23,9 +23,15 @@ in { users = { users.clamav = { isSystemUser = true; + uid = config.ids.uids.clamav; + home = cfg.clamav.state-directory; + description = "ClamAV daemon user"; group = "clamav"; }; - groups.clamav = { members = [ "clamav" ]; }; + groups.clamav = { + members = [ "clamav" ]; + gid = config.ids.gids.clamav; + }; }; systemd.tmpfiles.rules =