nixos-config/machines/chungus/media-syncthing.nix
Ingolf Wagner 2bc86a4912
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 10m11s
improve syncthing.nix
2024-08-29 08:06:27 +07:00

80 lines
1.6 KiB
Nix

{ config, pkgs, lib, ... }: {
services.syncthing = {
enable = true;
overrideFolders = true;
user = "media";
group = "media";
settings.folders = {
oscar_cpap = {
enable = true;
path = "/syncthing/oscar_cpap";
};
logseq = {
enable = true;
path = "/syncthing/logseq";
};
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;
type = "sendonly";
path = "/syncthing/lost-fotos.ct";
};
music-projects = {
enable = true;
path = "/syncthing/music-projects";
};
audiobooks = {
enable = true;
type = "sendonly";
path = "/media/audio-books";
};
lectures = {
enable = true;
type = "sendonly";
path = "/media/lectures";
};
flix = {
enable = true;
type = "sendonly";
path = "/syncthing/flix";
};
};
};
services.permown."/syncthing" = {
owner = "media";
group = "media";
directory-mode = "755";
file-mode = "755";
};
}