nixos-config/configs/sterni/syncthing.nix

69 lines
1.6 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
test.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-11-22 11:46:39 +01:00
private = {
enable = true;
path = "/home/palo/private";
};
2019-10-26 13:44:27 +02:00
desktop = {
enable = true;
path = "/home/palo/desktop";
};
finance = {
enable = true;
2019-11-05 22:39:57 +01:00
path = "/home/palo/finance";
2019-10-26 13:44:27 +02:00
};
fotos = {
enable = true;
path = "/home/palo/fotos";
};
2019-11-05 23:00:12 +01:00
samples = {
enable = true;
path = "/home/palo/samples";
};
2020-03-31 11:33:31 +02:00
zettlr = {
enable = true;
path = "/home/palo/zettlr";
};
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 = {
enable = true;
path = "/home/palo/music-library";
};
music-projects = {
enable = true;
path = "/home/palo/music-projects";
};
2020-03-14 19:29:50 +01:00
smartphone-folder = {
enable = true;
path = "/home/palo/smartphone-folder";
};
workhorse-sterni = {
enable = true;
path = "/home/palo/sync-to-workhorse";
};
2019-10-24 02:20:38 +02:00
};
};
};
}