renames vpn service to wireguard

This commit is contained in:
2024-11-05 23:29:09 +01:00
parent 15ac4c77e1
commit d0ce652f04
2 changed files with 5 additions and 5 deletions

View File

@ -0,0 +1,19 @@
{ config, pkgs, ... }:
{
environment.etc."docker/wireguard".source = ./wireguard;
systemd.services.wireguard = {
description = "Wireguard Docker Compose Service";
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
ExecStart = "${pkgs.docker-compose}/bin/docker-compose -f /etc/docker/wireguard/docker-compose.yml up";
ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f /etc/docker/wireguard/docker-compose.yml down";
WorkingDirectory = "/etc/docker/wireguard";
Restart = "always";
RestartSec = 10;
};
wantedBy = [ "multi-user.target" ];
};
}