host/tatos: style changes

This commit is contained in:
Dmitriy Pleshevskiy 2024-04-18 10:51:14 +03:00
parent 10679db066
commit 7324c1d1dd
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -8,7 +8,6 @@ let
tatosData = import ../../data.secret.nix; tatosData = import ../../data.secret.nix;
port = tatosData.wireguard.port; port = tatosData.wireguard.port;
update_ru_routes = pkgs.callPackage ./update_ru_routes.nix { };
in in
{ {
boot.kernel.sysctl."net.ipv4.ip_forward" = 1; boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
@ -21,13 +20,18 @@ in
internalInterfaces = [ "wg0" ]; internalInterfaces = [ "wg0" ];
}; };
services.cron = { services.cron =
enable = true; let
systemCronJobs = let cmd = "${update_ru_routes}/bin/update_ru_routes > /root/update_routes.log 2>&1"; in [ update_ru_routes = pkgs.callPackage ./update_ru_routes.nix { };
"@reboot sleep 30 && ${cmd}" cmd = "${update_ru_routes}/bin/update_ru_routes > /root/update_routes.log 2>&1";
"0 3 * * mon ${cmd}" in
]; {
}; enable = true;
systemCronJobs = [
"@reboot sleep 30 && ${cmd}"
"0 3 * * mon ${cmd}"
];
};
networking.wg-quick.interfaces = { networking.wg-quick.interfaces = {