1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 12:01:06 +01:00

feat(zaatar): sync music via syncthing

This commit is contained in:
2021-09-05 17:05:00 +02:00
parent 7fcf265ffd
commit 84613b8d51
3 changed files with 21 additions and 5 deletions

View File

@@ -33,7 +33,10 @@
"${cloud-dir}/syncthing/common".devices = [ "wilde" "manakish" ];
"${cloud-dir}/syncthing/library".devices = [ "wilde" "manakish" "heym" ];
"${cloud-dir}/syncthing/mundoiu".devices = [ "wilde" "manakish" "heym" ];
"${cloud-dir}/syncthing/music".devices = [ "wilde" "manakish" "heym" ];
"${cloud-dir}/syncthing/music" = {
devices = [ "wilde" "manakish" "heym" "zaatar" ];
id = "music";
};
"${cloud-dir}/moodle" = {
devices = [ "wilde" "toum" "manakish" ];
id = "moodle-dl";

View File

@@ -13,11 +13,23 @@ in
<niveum/modules/tuna.nix>
];
services.mpdscribble = {
services.syncthing = let mpd-directory = config.services.mpd.dataDir; in {
enable = true;
endpoints."last.fm" = {
username = "Sternenzone";
passwordFile = toString <system-secrets/lastfm.key>;
user = config.services.mpd.user; # config.users.extraUsers.moodle.name;
openDefaultPorts = true;
configDir = "${mpd-directory}/.config/syncthing";
dataDir = "${mpd-directory}/.config/syncthing";
declarative = rec {
cert = toString <system-secrets/syncthing/cert.pem>;
key = toString <system-secrets/syncthing/key.pem>;
devices = {
inherit ((import <niveum/lib>).syncthing.devices) wilde manakish heym;
};
folders.${config.services.mpd.musicDirectory} = {
devices = [ "heym" "wilde" "manakish" ];
id = "music";
type = "receiveonly";
};
};
};