nixos-config/configs/sterni/syncthing.nix

62 lines
1.4 KiB
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
{ config, pkgs, lib, ... }:
{
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-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
};
lost-fotos = {
enable = true;
path = "/home/palo/.lost-fotos.ct";
};
fotos = {
enable = true;
path = "/home/palo/fotos";
};
2019-11-05 23:00:12 +01:00
samples = {
enable = true;
path = "/home/palo/samples";
};
2019-10-26 13:44:27 +02:00
smartphone-fotos = {
enable = true;
path = "/home/palo/smartphone-fotos";
};
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";
};
2019-10-24 02:20:38 +02:00
};
};
};
}