nixos-config/machines/usbstick/syncthing.nix
Ingolf Wagner 2bc86a4912
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 10m11s
improve syncthing.nix
2024-08-29 08:06:27 +07:00

35 lines
722 B
Nix

{ config, pkgs, lib, ... }: {
services.syncthing = {
enable = true;
openDefaultPorts = false;
user = "palo";
dataDir = "/home/palo/.syncthing";
configDir = "/home/palo/.syncthing";
overrideFolders = true;
folders = {
private = {
enable = true;
path = "/home/palo/private";
};
desktop = {
enable = true;
path = "/home/palo/desktop";
};
finance = {
enable = true;
path = "/home/palo/finance";
};
password-store = {
enable = true;
path = "/home/palo/.password-store";
};
};
};
services.permown."/home/palo/music-library" = {
owner = "palo";
group = "users";
};
}