Require wg.service for vpn containers

We are doing this ensure wg.service has been
started and has created /var/run/netns/wg.
This commit is contained in:
Maroka-chan
2024-02-25 21:56:37 +01:00
parent dbf9518488
commit 4b022f645e
7 changed files with 28 additions and 0 deletions
+4
View File
@@ -44,6 +44,10 @@ in {
})
];
systemd.services."container@sonarr" = mkIf cfg.vpn.enable {
requires = ["wg.service"];
};
containers.sonarr = mkIf cfg.vpn.enable {
autoStart = true;
ephemeral = true;