nixos/modules/syncthing.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

2024-06-30 13:46:41 -07:00
{ config, lib, ... }:
with lib;
let
cfg = config.snowhawk.syncthing;
in
{
options.snowhawk.syncthing = {
enable = mkEnableOption "syncthing";
};
config = mkIf cfg.enable {
services.syncthing = {
enable = true;
user = "ravenshade";
group = "users";
dataDir = "/home/ravenshade/syncthing";
configDir = "/home/ravenshade/.config/syncthing";
overrideFolders = true;
overrideDevices = false;
settings = {
devices = {
2024-12-28 06:53:09 -08:00
permafrost.id = "Y3RGVEJ-KKD2QV2-LHHHL7Z-DWRLTWI-P3RG4GG-VTDTNJV-IM4OMRA-E3BY7QN";
2024-12-28 06:50:46 -08:00
lynx.id = "O7EB4D6-AH4A53X-YM6UE7K-T3CJGIZ-MRJ6J7U-DXTEOKB-Z7LSV2M-LVUWFAO";
sprite.id = "IS2F2X5-43F7B2Q-SVSNY4J-GOHU5XP-NSJ2MJS-GDDNNTR-BGPQHHE-TE4JDAX";
2024-06-30 13:46:41 -07:00
};
folders = {
"obsidian" = rec {
id = "obsidian";
label = id;
path = "/home/ravenshade/obsidian";
2024-12-28 06:53:09 -08:00
devices = [ "permafrost" "lynx" "sprite" ];
2024-06-30 13:46:41 -07:00
};
2024-09-15 01:43:22 -07:00
"sync" = {
id = "default";
label = "sync";
path = "/home/ravenshade/sync";
2024-12-28 06:53:09 -08:00
devices = [ "lynx" ];
2024-09-15 01:43:22 -07:00
};
2024-06-30 13:46:41 -07:00
};
gui = {
theme = "dark";
};
options = {
urAccepted = -1;
localAnnounceEnabled = false;
relaysEnabled = true;
};
};
};
};
}