sync: add relay and share-playlist
This commit is contained in:
parent
be8a28fb5b
commit
e676aaf6f1
|
@ -10,6 +10,7 @@ in {
|
||||||
|
|
||||||
./zigbee2mqtt
|
./zigbee2mqtt
|
||||||
./rhasspy.nix
|
./rhasspy.nix
|
||||||
|
./esphome.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./ha-ara-menu.nix
|
./ha-ara-menu.nix
|
||||||
./inventory4ce.nix
|
./inventory4ce.nix
|
||||||
|
@ -68,6 +69,7 @@ in {
|
||||||
volumes = [
|
volumes = [
|
||||||
"${confdir}:/config"
|
"${confdir}:/config"
|
||||||
"/data/music:/config/media"
|
"/data/music:/config/media"
|
||||||
|
"/run/dbus:/run/dbus:ro"
|
||||||
#"${confdir}/docker-run:/etc/services.d/home-assistant/run:"
|
#"${confdir}/docker-run:/etc/services.d/home-assistant/run:"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
13
2configs/sync/relay.nix
Normal file
13
2configs/sync/relay.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
6
2configs/sync/share-playlist.nix
Normal file
6
2configs/sync/share-playlist.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
services.syncthing.folders.the_playlist = {
|
||||||
|
path = "/media/silent/music/the_playlist";
|
||||||
|
devices = [ "mors" "prism" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue