nixos-config/legacy/sterni/syncthing.nix

67 lines
1.5 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";
2022-01-16 11:59:40 +01:00
cert = toString config.sops.secrets.syncthing_cert.path;
key = toString config.sops.secrets.syncthing_key.path;
overrideFolders = true;
folders = {
2019-10-24 02:20:38 +02:00
2022-01-16 11:59:40 +01:00
# on encrypted drive
# ------------------
2022-09-23 20:29:18 +02:00
password-store = {
enable = true;
path = "/home/palo/.password-store";
};
2023-08-14 03:08:56 +02:00
#private = {
# enable = true;
# path = "/home/palo/private";
#};
2022-12-15 15:48:53 +01:00
art = {
enable = true;
path = "/home/palo/art";
};
2022-01-16 11:59:40 +01:00
desktop = {
enable = true;
path = "/home/palo/desktop";
};
finance = {
enable = true;
path = "/home/palo/finance";
};
2019-10-24 02:20:38 +02:00
2022-01-16 11:59:40 +01:00
# no need to be encrypted
# -----------------------
books = {
enable = true;
path = "/home/palo/books";
};
music-library = {
enable = true;
path = "/home/palo/music-library";
};
2023-08-14 03:08:56 +02:00
#music-projects = {
# enable = true;
# path = "/home/palo/music-projects";
#};
2019-10-24 02:20:38 +02:00
};
};
2020-09-08 21:45:42 +02:00
2022-12-18 16:46:20 +01:00
services.permown."/home/palo/music-library" = {
2020-09-08 21:45:42 +02:00
owner = "palo";
group = "users";
};
2022-11-09 15:09:18 +01:00
2022-12-18 16:46:20 +01:00
services.permown."/home/palo/finance" = {
2022-11-09 15:09:18 +01:00
owner = "palo";
group = "syncthing";
};
2019-10-24 02:20:38 +02:00
}