This commit is contained in:
Lukas Wurzinger 2024-09-15 16:15:47 +02:00
parent 1647a51793
commit ea762ef354
2 changed files with 24 additions and 11 deletions

View file

@ -40,13 +40,23 @@
'';
};
in {
# systemd.services.audiocomp = {
# description = "Compress and sync music";
# serviceConfig = {
# Type = "oneshot";
# User = "root";
# Group = "root";
# ExecStart = lib.getExe audiocomp;
# };
# };
systemd.services.audiocomp = {
description = "Compress and sync music";
serviceConfig = {
Type = "oneshot";
User = "root";
Group = "root";
ExecStart = lib.getExe audiocomp;
};
};
systemd.timers.audiocomp = {
description = "Compress and sync music daily";
wantedBy = ["timers.target"];
timerConfig = {
OnCalendar = "*-*-* 03:00:00";
Persistent = true;
Unit = "audiocomp.service";
};
};
}

View file

@ -1,11 +1,14 @@
let
{lib, ...}: let
guiPort = 8384;
in {
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
guiAddress = "0.0.0.0:${builtins.toString guiPort}";
guiAddress = lib.formatHostPort {
host = "0.0.0.0";
port = guiPort;
};
};
networking.firewall.allowedTCPPorts = [guiPort];