nixos-config/machines/cherry/syncthing.nix

69 lines
1.3 KiB
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
config,
pkgs,
lib,
...
}:
{
2023-12-17 13:06:57 +01:00
verify.http.syncthing-gui = {
url = config.services.syncthing.guiAddress;
expectedContent = "syncthing";
};
2023-12-17 13:06:57 +01:00
services.syncthing = {
enable = true;
openDefaultPorts = false;
user = "palo";
2024-06-05 16:55:55 +02:00
group = "users";
2023-12-17 13:06:57 +01:00
dataDir = "/home/palo/.syncthing";
configDir = "/home/palo/.syncthing";
overrideFolders = true;
settings.folders = {
2024-04-25 11:16:49 +02:00
oscar_cpap = {
enable = true;
path = "/home/palo/Documents/OSCAR_Data";
};
2023-12-17 13:06:57 +01:00
password-store = {
enable = true;
path = "/home/palo/.password-store";
};
2024-04-17 10:38:26 +02:00
logseq = {
enable = true;
path = "/home/palo/logseq";
};
2023-12-17 13:06:57 +01:00
art = {
enable = true;
path = "/home/palo/art";
};
desktop = {
enable = true;
path = "/home/palo/desktop";
};
finance = {
enable = true;
path = "/home/palo/finance";
};
2024-06-10 15:11:48 +02:00
share = {
enable = true;
path = "/home/palo/share";
type = "sendonly";
};
2023-12-17 13:06:57 +01:00
books = {
enable = true;
path = "/home/palo/books";
};
};
};
services.permown."/home/palo/music-library" = {
owner = "palo";
group = "users";
};
services.permown."/home/palo/finance" = {
owner = "palo";
group = "syncthing";
};
}