16 lines
395 B
Nix
16 lines
395 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.software.system.syncthing;
|
|
in {
|
|
options.modules.software.system.syncthing = {
|
|
enable = mkEnableOption "Enable Syncthing, a file synchronization server";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
# todo: declare sync folders & devices here
|
|
hm.services.syncthing.enable = true;
|
|
hm.services.syncthing.tray.enable = true;
|
|
};
|
|
} |