nix-dotfiles/nixosModules/apps/syncthing/default.nix

26 lines
589 B
Nix
Raw Normal View History

{ config, lib, ... }:
2024-04-07 17:08:48 -07:00
{
options = {
syncthing.enable = lib.mkEnableOption "Enables syncthing";
};
config = lib.mkIf config.syncthing.enable {
services.syncthing = {
enable = true;
# user = config.user.name;
# dataDir = "/home/" + config.user.name + "/dox/Sync";
# configDir = "/home/" + config.user.name + "/.config/syncthing";
# overrideFolders = true;
# overrideDevices = true;
#
# settings = {
# gui = {
# user = config.user.name;
# password = "password";
# };
# };
2024-04-07 17:08:48 -07:00
};
};
}