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;
port = tatosData.wireguard.port;
update_ru_routes = pkgs.callPackage ./update_ru_routes.nix { };
in
{
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
@ -21,9 +20,14 @@ in
internalInterfaces = [ "wg0" ];
};
services.cron = {
services.cron =
let
update_ru_routes = pkgs.callPackage ./update_ru_routes.nix { };
cmd = "${update_ru_routes}/bin/update_ru_routes > /root/update_routes.log 2>&1";
in
{
enable = true;
systemCronJobs = let cmd = "${update_ru_routes}/bin/update_ru_routes > /root/update_routes.log 2>&1"; in [
systemCronJobs = [
"@reboot sleep 30 && ${cmd}"
"0 3 * * mon ${cmd}"
];