stuff
This commit is contained in:
parent
1647a51793
commit
ea762ef354
|
@ -40,13 +40,23 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# systemd.services.audiocomp = {
|
systemd.services.audiocomp = {
|
||||||
# description = "Compress and sync music";
|
description = "Compress and sync music";
|
||||||
# serviceConfig = {
|
serviceConfig = {
|
||||||
# Type = "oneshot";
|
Type = "oneshot";
|
||||||
# User = "root";
|
User = "root";
|
||||||
# Group = "root";
|
Group = "root";
|
||||||
# ExecStart = lib.getExe audiocomp;
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
let
|
{lib, ...}: let
|
||||||
guiPort = 8384;
|
guiPort = 8384;
|
||||||
in {
|
in {
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemService = true;
|
systemService = true;
|
||||||
openDefaultPorts = 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];
|
networking.firewall.allowedTCPPorts = [guiPort];
|
||||||
|
|
Loading…
Reference in a new issue