mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-01-23 20:58:35 +01:00
14 lines
429 B
Nix
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
|
||
|
};
|
||
|
};
|
||
|
}
|