tree-wide: fix errors and warning related to loaOf deprecation
This commit is contained in:
parent
370355449f
commit
2a31a6a412
|
@ -334,7 +334,7 @@ in
|
||||||
} // optionalAttrs (cfg.group == "dovecot2") {
|
} // optionalAttrs (cfg.group == "dovecot2") {
|
||||||
dovecot2.gid = config.ids.gids.dovecot2;
|
dovecot2.gid = config.ids.gids.dovecot2;
|
||||||
} // optionalAttrs (cfg.createMailUser && cfg.mailGroup != null) {
|
} // optionalAttrs (cfg.createMailUser && cfg.mailGroup != null) {
|
||||||
${cfg.mailgroup} = { };
|
${cfg.mailGroup} = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc."dovecot/modules".source = modulesDir;
|
environment.etc."dovecot/modules".source = modulesDir;
|
||||||
|
|
|
@ -99,7 +99,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
users.groups = optionalAttrs (cfg.group == "opendkim") {
|
users.groups = optionalAttrs (cfg.group == "opendkim") {
|
||||||
opendkimgid = config.ids.gids.opendkim;
|
opendkim.gid = config.ids.gids.opendkim;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.opendkim ];
|
environment.systemPackages = [ pkgs.opendkim ];
|
||||||
|
|
|
@ -665,9 +665,9 @@ in
|
||||||
|
|
||||||
users.groups =
|
users.groups =
|
||||||
optionalAttrs (group == "postfix")
|
optionalAttrs (group == "postfix")
|
||||||
{ group.gid = config.ids.gids.postfix;
|
{ ${group}.gid = config.ids.gids.postfix;
|
||||||
}
|
}
|
||||||
++ optionalAttrs (setgidGroup == "postdrop")
|
// optionalAttrs (setgidGroup == "postdrop")
|
||||||
{ ${setgidGroup}.gid = config.ids.gids.postdrop;
|
{ ${setgidGroup}.gid = config.ids.gids.postdrop;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -92,17 +92,21 @@ in
|
||||||
message = "Quassel needs a certificate file in order to require SSL";
|
message = "Quassel needs a certificate file in order to require SSL";
|
||||||
}];
|
}];
|
||||||
|
|
||||||
users.users = mkIf (cfg.user == null) [
|
users.users = optionalAttrs (cfg.user == null) {
|
||||||
{ name = "quassel";
|
quassel = {
|
||||||
|
name = "quassel";
|
||||||
description = "Quassel IRC client daemon";
|
description = "Quassel IRC client daemon";
|
||||||
group = "quassel";
|
group = "quassel";
|
||||||
uid = config.ids.uids.quassel;
|
uid = config.ids.uids.quassel;
|
||||||
}];
|
};
|
||||||
|
};
|
||||||
|
|
||||||
users.groups = mkIf (cfg.user == null) [
|
users.groups = optionalAttrs (cfg.user == null) {
|
||||||
{ name = "quassel";
|
quassel = {
|
||||||
|
name = "quassel";
|
||||||
gid = config.ids.gids.quassel;
|
gid = config.ids.gids.quassel;
|
||||||
}];
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d '${cfg.dataDir}' - ${user} - - -"
|
"d '${cfg.dataDir}' - ${user} - - -"
|
||||||
|
|
Loading…
Reference in New Issue