nixos-config/configs/workout/syncthing.nix

87 lines
2.0 KiB
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ config, pkgs, lib, ... }: {
2019-10-24 02:20:38 +02:00
2020-11-21 18:56:11 +01:00
services.syncthing = {
2019-10-24 02:20:38 +02:00
enable = true;
openDefaultPorts = false;
user = "palo";
dataDir = "/home/palo/.syncthing";
configDir = "/home/palo/.syncthing";
declarative = {
cert = toString <secrets/syncthing/cert.pem>;
key = toString <secrets/syncthing/key.pem>;
overrideFolders = true;
folders = {
2019-10-25 03:03:25 +02:00
# on encrypted drive
# ------------------
2019-10-26 13:44:27 +02:00
desktop = {
enable = true;
path = "/home/palo/desktop";
};
finance = {
enable = true;
path = "/home/palo/finance";
};
lost-fotos = {
enable = true;
path = "/home/palo/.lost-fotos.ct";
};
fotos = {
enable = true;
path = "/home/palo/fotos";
};
2020-10-08 21:09:35 +02:00
programs = {
enable = true;
path = "/home/palo/programs";
};
2019-10-25 03:03:25 +02:00
# no need to be encrypted
# -----------------------
2019-10-26 13:44:27 +02:00
book = {
enable = true;
path = "/home/palo/books";
};
music-library-free = {
enable = true;
path = "/home/palo/music-library-free";
};
music-library = {
enable = true;
path = "/home/palo/music-library";
};
music-projects = {
enable = true;
path = "/home/palo/music-projects";
};
samples = {
enable = true;
path = "/home/palo/samples";
};
video-material = {
enable = true;
path = "/home/palo/video-material";
};
windows-sync = {
enable = true;
path = "/home/palo/windows-sync";
};
2020-03-14 19:29:50 +01:00
smartphone-folder = {
enable = true;
path = "/home/palo/smartphone-folder";
};
2020-04-08 00:24:38 +02:00
zettlr = {
enable = true;
path = "/home/palo/zettlr";
};
2020-09-27 23:18:06 +02:00
processing = {
enable = true;
path = "/home/palo/sketchbook";
};
2019-10-24 02:20:38 +02:00
};
};
};
}