diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-05 15:57:20 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-25 00:04:54 +0200 |
commit | 2bcc666fd591dbf7543fc550ff1772508695a746 (patch) | |
tree | 65bb255cbeba40f4c385211bcc32df4c25e6ea6b /modules/opendmarc.nix | |
parent | 27794e1507ab5bd4b0f31278cf8049854790e4a7 (diff) | |
download | NUR-2bcc666fd591dbf7543fc550ff1772508695a746.tar.gz NUR-2bcc666fd591dbf7543fc550ff1772508695a746.tar.zst NUR-2bcc666fd591dbf7543fc550ff1772508695a746.zip |
Upgrade to nixos-unstable
Diffstat (limited to 'modules/opendmarc.nix')
-rw-r--r-- | modules/opendmarc.nix | 14 |
1 files changed, 8 insertions, 6 deletions
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 { | |||
59 | 59 | ||
60 | config = mkIf cfg.enable { | 60 | config = mkIf cfg.enable { |
61 | 61 | ||
62 | users.users = optionalAttrs (cfg.user == "opendmarc") (singleton | 62 | users.users = optionalAttrs (cfg.user == "opendmarc") { |
63 | { name = "opendmarc"; | 63 | opendmarc = { |
64 | group = cfg.group; | 64 | group = cfg.group; |
65 | uid = config.ids.uids.opendmarc; | 65 | uid = config.ids.uids.opendmarc; |
66 | }); | 66 | }; |
67 | }; | ||
67 | 68 | ||
68 | users.groups = optionalAttrs (cfg.group == "opendmarc") (singleton | 69 | users.groups = optionalAttrs (cfg.group == "opendmarc") { |
69 | { name = "opendmarc"; | 70 | opendmarc = { |
70 | gid = config.ids.gids.opendmarc; | 71 | gid = config.ids.gids.opendmarc; |
71 | }); | 72 | }; |
73 | }; | ||
72 | 74 | ||
73 | environment.systemPackages = [ pkgs.opendmarc ]; | 75 | environment.systemPackages = [ pkgs.opendmarc ]; |
74 | 76 | ||