mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-29 10:03:09 +01:00
14 lines
449 B
Nix
14 lines
449 B
Nix
{ pkgs, config, lib, host, ... }:
|
|
|
|
let inherit (import ../../hosts/${host}/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
|
|
};
|
|
};
|
|
}
|