X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fopendmarc.nix;h=6137d100d68d95ffa4f589ff11a53f592379251f;hb=2bcc666fd591dbf7543fc550ff1772508695a746;hp=e18ec82a66ef466a30e3d0e80b100876a7b8809b;hpb=27794e1507ab5bd4b0f31278cf8049854790e4a7;p=perso%2FImmae%2FConfig%2FNix%2FNUR.git diff --git a/modules/opendmarc.nix b/modules/opendmarc.nix index e18ec82a..6137d100 100644 --- a/modules/opendmarc.nix +++ b/modules/opendmarc.nix @@ -59,16 +59,18 @@ in { config = mkIf cfg.enable { - users.users = optionalAttrs (cfg.user == "opendmarc") (singleton - { name = "opendmarc"; + users.users = optionalAttrs (cfg.user == "opendmarc") { + opendmarc = { group = cfg.group; uid = config.ids.uids.opendmarc; - }); + }; + }; - users.groups = optionalAttrs (cfg.group == "opendmarc") (singleton - { name = "opendmarc"; + users.groups = optionalAttrs (cfg.group == "opendmarc") { + opendmarc = { gid = config.ids.gids.opendmarc; - }); + }; + }; environment.systemPackages = [ pkgs.opendmarc ];