Files
nix/modules/system/syncthing.nix

23 lines
479 B
Nix

{ config, pkgs, ... }:
{
options = {
modules.system.syncthing.enable = lib.mkEnableOption "enables syncthing";
};
config = lib.mkIf config.modules.system.syncthing.enable {
services.syncthing = {
enable = true;
user = "blake";
group = "blake";
dataDir = "/home/blake/.local/state/syncthing";
configDir = "/home/blake/.config/syncthing";
# webui
guiAddress = "0.0.0.0:2222";
openDefaultPorts = true;
};
};
}