diff --git a/nixos/modules/services/mail/stalwart.nix b/nixos/modules/services/mail/stalwart.nix index 3d7c6be0de53..2592377f9fba 100644 --- a/nixos/modules/services/mail/stalwart.nix +++ b/nixos/modules/services/mail/stalwart.nix @@ -170,7 +170,7 @@ in users = { ${cfg.user} = { isSystemUser = true; - group = "${cfg.group}"; + inherit (cfg) group; }; }; }; @@ -220,8 +220,8 @@ in StateDirectory = if useLegacyDefault then "stalwart-mail" else "stalwart"; # Upstream uses "stalwart" as the username since 0.12.0 - User = "${cfg.user}"; - Group = "${cfg.group}"; + User = cfg.user; + Group = cfg.group; # Bind standard privileged ports AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];