53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
|
|
test.services.syncthing = {
|
|
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 = {
|
|
|
|
# on encrypted drive
|
|
# ------------------
|
|
desktop = {
|
|
enable = true;
|
|
path = "/home/palo/desktop";
|
|
};
|
|
finance = {
|
|
enable = true;
|
|
path = "/home/palo/finance";
|
|
};
|
|
lost-fotos = {
|
|
enable = true;
|
|
path = "/home/palo/.lost-fotos.ct";
|
|
};
|
|
smartphone-fotos = {
|
|
enable = true;
|
|
path = "/home/palo/smartphone-fotos";
|
|
};
|
|
|
|
# no need to be encrypted
|
|
# -----------------------
|
|
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";
|
|
};
|
|
|
|
};
|
|
};
|
|
};
|
|
}
|