nixos-config/nixos/machines/chungus/media-syncthing.nix

76 lines
1.6 KiB
Nix
Raw Normal View History

2023-05-12 11:17:58 +02:00
{ config, pkgs, lib, ... }: {
services.syncthing = {
enable = true;
overrideFolders = true;
2024-04-17 10:00:17 +02:00
user = "media";
group = "media";
# make some folders send only
settings.folders = {
audiobooks.type = "sendonly";
lost-fotos.type = "sendonly";
lectures.type = "sendonly";
};
2023-05-12 11:17:58 +02:00
folders = {
# on encrypted drive
# ------------------
2024-04-17 10:38:26 +02:00
logseq = {
enable = true;
path = "/syncthing/logseq";
};
2023-05-12 11:17:58 +02:00
art = {
enable = true;
path = "/syncthing/art";
};
private = {
enable = true;
path = "/syncthing/private";
};
password-store = {
enable = true;
path = "/syncthing/password-store";
};
desktop = {
enable = true;
path = "/syncthing/desktop";
};
finance = {
enable = true;
path = "/syncthing/finance";
};
fotos = {
enable = true;
path = "/syncthing/fotos";
};
books = {
enable = true;
path = "/syncthing/books";
};
lost-fotos = {
enable = true;
path = "/syncthing/lost-fotos.ct";
};
music-projects = {
enable = true;
path = "/syncthing/music-projects";
};
2024-04-17 10:00:17 +02:00
audiobooks = {
enable = true;
path = "/media/audio-books";
};
lectures = {
enable = true;
path = "/media/lectures";
};
2023-05-12 11:17:58 +02:00
};
};
services.permown."/syncthing" = {
2024-04-17 10:00:17 +02:00
owner = "media";
group = "media";
directory-mode = "755";
file-mode = "755";
2023-05-12 11:17:58 +02:00
};
}