diff options
| author | Mike Vink <mike@pionative.com> | 2024-02-11 15:53:44 +0100 |
|---|---|---|
| committer | Mike Vink <mike@pionative.com> | 2024-02-11 15:53:44 +0100 |
| commit | 3cc299a59572c8c9c09b67fc26cfc699355447fd (patch) | |
| tree | 7ca17359497f4b439c3a3c7ddd9e7da629a0e1c4 /ivi | |
| parent | 2524a1b80a983d0e4ef4796477bd2a8c812acb69 (diff) | |
setup syncthing on lemptop and pump
Diffstat (limited to 'ivi')
| -rw-r--r-- | ivi/ivi.nix | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/ivi/ivi.nix b/ivi/ivi.nix index a12ce35..6858ada 100644 --- a/ivi/ivi.nix +++ b/ivi/ivi.nix @@ -54,25 +54,41 @@ self: lib: with lib; let default = false; }; tailnet = mkOption { + default = {}; type = with types; attrsOf (submodule ({ name, config, ... }: { - freeformType = attrs; - ipv4 = mkOption { - description = "The machine's tailnet IPv4 address"; - type = str; - default = null; - }; - ipv6 = mkOption { - description = "The machine's tailnet IPv6 address"; - type = str; - default = null; - }; - nodeKey = mkOption { - description = "The machine's tailnet public key"; - type = str; - default = null; + options = { + ipv4 = mkOption { + description = "The machine's tailnet IPv4 address"; + type = str; + default = null; + }; + ipv6 = mkOption { + description = "The machine's tailnet IPv6 address"; + type = str; + default = null; + }; + nodeKey = mkOption { + description = "The machine's tailnet public key"; + type = str; + default = null; + }; }; })); }; + syncthing = mkOption { + default = {}; + type = with types; submodule { + freeformType = attrs; + options = { + id = mkOption { + description = "The machine's syncting public id"; + type = str; + default = ""; + }; + enable = mkEnableOption "Add to syncthing cluster"; + }; + }; + }; }; config = { modules = @@ -147,7 +163,7 @@ self: lib: with lib; let ]; syncthing = { enable = true; - id = "45TTOOY-YAJCVGX-GGM2Z2M-2YUYDOR-GGFPHFH-TOCCBGQ-A4A2NUB-GEKLGQQ"; + id = "TGRWV6Z-5CJ4KRI-4VDTIUE-UA5LQYS-3ARZGNK-KL7HGXP-352PB5Q-ADTV6Q2"; }; }; pump = { |
