Files
nixos/modules/nixos/syncthing.nix
T

31 lines
822 B
Nix
Raw Normal View History

2024-10-03 15:21:56 -05:00
{ config, lib, ... }:
2024-08-15 04:48:29 +00:00
let
cfg = config.greg.syncthing;
in
2024-10-19 01:19:59 -05:00
with lib;
{
options.greg.syncthing = {
enable = mkEnableOption "Setup my personal minimal configuration for Syncthing";
};
2024-08-15 04:48:29 +00:00
config = mkIf cfg.enable {
services.syncthing = {
enable = true;
overrideFolders = true;
overrideDevices = true;
settings = {
devices = {
chronicles.id = "7FI6Y3M-C7YQEDI-IB345L6-RKLXMB6-AEIV57Y-3J2RCXQ-MK6QRNK-EINPXAE";
genesis.id = "YDTH4SD-GUAC5AA-SSYWYPZ-YMJW5LK-LE7PZKJ-GV2UJFZ-CU7LZAD-GTYWCQK";
2025-06-06 01:05:47 -05:00
gitlab.id = "GKNOZWI-CNC2Q2F-R5GGGDX-RYFGHK4-CCC37LC-GVOEMJI-46QPC6G-AWFEOQE";
linode.id = "IJMMXPR-WNALZBD-FMJH5W5-WV7XGJY-HLJTKGT-5TKHJIH-75LT56D-UUZCYQE";
};
options = {
urAccepted = -1;
};
};
};
};
2024-08-15 04:48:29 +00:00
}