zaneyos/config/system/syncthing.nix
2024-02-23 20:49:29 +01:00

14 lines
429 B
Nix

{ pkgs, config, lib, ... }:
let inherit (import ../../options.nix) syncthing username userHome; in
lib.mkIf (syncthing == true) {
services = {
syncthing = {
enable = true;
user = "${username}";
dataDir = "/home/${username}"; # Default folder for new synced folders
configDir = "/home/${username}/.config/syncthing"; # Folder for Syncthing's settings and keys
};
};
}