moved ap to module

This commit is contained in:
bogale 2026-11-08 21:12:14 +09:00
commit 66490876b6
7 changed files with 47 additions and 52 deletions

View file

@ -18,17 +18,6 @@
sops.secrets.tgbot-env = { };
systemd = {
services = {
hotspot-routing = {
after = [ "wg-quick-awg0.service" ];
path = [ pkgs.iproute2 ];
preStop = "ip rule del from 10.1.0.0/16 lookup main";
requiredBy = [ "wg-quick-awg0.service" ];
script = "ip rule add from 10.1.0.0/16 lookup main";
serviceConfig = {
RemainAfterExit = true;
Type = "oneshot";
};
};
network-watchdog = {
path = with pkgs; [
curl