X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fopendmarc.nix;h=6137d100d68d95ffa4f589ff11a53f592379251f;hp=e18ec82a66ef466a30e3d0e80b100876a7b8809b;hb=7ad4966f41db0669a77c7a6ee7f87f0d4e586b0c;hpb=411af8e3f754278c5b54dfef7e1bd144a6007c39 diff --git a/modules/opendmarc.nix b/modules/opendmarc.nix index e18ec82..6137d10 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 ];