summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sys/nspawn.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/nspawn.nix b/sys/nspawn.nix
index a586221..6f1558c 100644
--- a/sys/nspawn.nix
+++ b/sys/nspawn.nix
@@ -108,6 +108,18 @@ in
PoolSize = 1;
};
};
+
+ services = {
+ dovecot2.after = [ "systemd-nspawn@dmz.service" ];
+
+ "systemd-nspawn@dmz" = {
+ overrideStrategy = "asDropin";
+
+ after = [ "network-online.target" ];
+ wants = [ "network-online.target" ];
+ wantedBy = [ "machines.target" ];
+ };
+ };
};
networking.firewall.interfaces.ve-dmz = {