nixos-config/configs/sterni/syncthing.nix

81 lines
1.9 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
sops.secrets.syncthing_cert = { };
sops.secrets.syncthing_key = { };
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 config.sops.secrets.syncthing_cert.path;
key = toString config.sops.secrets.syncthing_key.path;
2019-10-24 02:20:38 +02:00
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";
};
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
# -----------------------
2021-02-18 04:22:30 +01:00
books = {
2019-10-26 13:44:27 +02:00
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";
};
2020-09-27 23:18:06 +02:00
processing = {
enable = true;
path = "/home/palo/sketchbook";
};
2019-10-24 02:20:38 +02:00
};
};
};
2020-09-08 21:45:42 +02:00
system.permown."/home/palo/music-library" = {
owner = "palo";
group = "users";
};
2019-10-24 02:20:38 +02:00
}