sync: add relay and share-playlist

This commit is contained in:
makefu 2024-03-23 10:20:35 +01:00
parent be8a28fb5b
commit e676aaf6f1
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
3 changed files with 21 additions and 0 deletions

View file

@ -10,6 +10,7 @@ in {
./zigbee2mqtt
./rhasspy.nix
./esphome.nix
./jellyfin.nix
./ha-ara-menu.nix
./inventory4ce.nix
@ -68,6 +69,7 @@ in {
volumes = [
"${confdir}:/config"
"/data/music:/config/media"
"/run/dbus:/run/dbus:ro"
#"${confdir}/docker-run:/etc/services.d/home-assistant/run:"
];
};

13
2configs/sync/relay.nix Normal file
View file

@ -0,0 +1,13 @@
{config, ... }:
{
services.syncthing = {
relay = {
enable = true;
providedBy = "makefu";
};
};
networking.firewall.allowedTCPPorts = [
config.services.syncthing.relay.port
config.services.syncthing.relay.statusPort
];
}

View file

@ -0,0 +1,6 @@
{
services.syncthing.folders.the_playlist = {
path = "/media/silent/music/the_playlist";
devices = [ "mors" "prism" ];
};
}