nix-configs/modules/desktop-legacy/syncthing.nix

24 lines
418 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
2025-04-11 09:20:46 +02:00
}:
let
cfg = config.jade.desktop.syncthing;
in
2025-04-11 09:20:46 +02:00
with lib;
{
options.jade.desktop.syncthing = {
enable = mkEnableOption "Enable syncing via syncthing";
};
config = mkIf cfg.enable {
services.syncthing = rec {
enable = true;
user = "jade";
dataDir = "/home/${user}/Documents";
configDir = "/home/${user}/Documents/.config/syncthing";
};
2025-04-11 09:20:46 +02:00
};
}