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

92 lines
1.8 KiB
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
config,
pkgs,
lib,
...
}:
{
2023-05-12 11:17:58 +02:00
healthchecks.http.syncthing-gui = {
url = config.services.syncthing.guiAddress;
expectedContent = "syncthing";
};
healthchecks.closed.retiolum.ports.syncthing-gui = [ 8384 ];
2023-05-12 11:17:58 +02:00
services.syncthing = {
enable = true;
overrideFolders = true;
2024-04-17 10:00:17 +02:00
user = "media";
group = "media";
settings.folders = {
2024-04-25 11:16:49 +02:00
oscar_cpap = {
enable = true;
path = "/syncthing/oscar_cpap";
};
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;
2024-04-25 11:44:15 +02:00
type = "sendonly";
2023-05-12 11:17:58 +02:00
path = "/syncthing/lost-fotos.ct";
};
music-projects = {
enable = true;
path = "/syncthing/music-projects";
};
2024-04-17 10:00:17 +02:00
audiobooks = {
enable = true;
2024-04-25 11:44:15 +02:00
type = "sendonly";
2024-04-17 10:00:17 +02:00
path = "/media/audio-books";
};
lectures = {
enable = true;
2024-04-25 11:44:15 +02:00
type = "sendonly";
2024-04-17 10:00:17 +02:00
path = "/media/lectures";
};
2024-05-30 09:33:55 +02:00
flix = {
enable = true;
type = "sendonly";
path = "/syncthing/flix";
};
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
};
}