aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-18 17:32:18 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-18 17:32:18 +0100
commit9e175f0f102e63ad8b8639003ea3f3072b30613f (patch)
tree4ace982248814021b35da0f86e50861382efa0cf
parentflake: Update (diff)
downloadnixos-server-9e175f0f102e63ad8b8639003ea3f3072b30613f.zip
modules/mail: Apply migrations and set initial stateVersion
The server is already migrated, as such we should also try to apply this update in the very near future.
Diffstat (limited to '')
-rw-r--r--modules/by-name/co/constants/module.nix2
-rw-r--r--modules/by-name/ma/mail/module.nix4
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/by-name/co/constants/module.nix b/modules/by-name/co/constants/module.nix
index fa9ce17..3de9608 100644
--- a/modules/by-name/co/constants/module.nix
+++ b/modules/by-name/co/constants/module.nix
@@ -54,6 +54,7 @@
redis-sharkey = 340;
grocy = 341;
anubis = 342;
+ postfix-tlspol = 343;
# As per the NixOS file, the uids should not be greater or equal to 400;
};
@@ -77,6 +78,7 @@
nscd
opendkim
peertube
+ postfix-tlspol
redis-mastodon
redis-nextcloud
redis-peertube
diff --git a/modules/by-name/ma/mail/module.nix b/modules/by-name/ma/mail/module.nix
index 55f2fb8..500abd0 100644
--- a/modules/by-name/ma/mail/module.nix
+++ b/modules/by-name/ma/mail/module.nix
@@ -73,6 +73,8 @@ in {
enable = true;
inherit (cfg) fqdn;
+ stateVersion = 3;
+
useFsLayout = true;
extraVirtualAliases = {
@@ -156,11 +158,13 @@ in {
knot-resolver.uid = config.vhack.constants.ids.uids.knot-resolver;
redis-rspamd.uid = config.vhack.constants.ids.uids.redis-rspamd;
rspamd.uid = config.vhack.constants.ids.uids.rspamd;
+ postfix-tlspol.uid = config.vhack.constants.ids.uids.postfix-tlspol;
};
groups = {
knot-resolver.gid = lib.mkForce config.vhack.constants.ids.gids.knot-resolver;
redis-rspamd.gid = config.vhack.constants.ids.gids.redis-rspamd;
rspamd.gid = config.vhack.constants.ids.gids.rspamd;
+ postfix-tlspol.gid = config.vhack.constants.ids.gids.postfix-tlspol;
};
};
};