From 439e940037e2a0a37d7d59ac64e65518867aac15 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 10 May 2023 20:09:14 -0700 Subject: profiles/syncthing: move the old module --- modules/services/syncthing/default.nix | 51 ---------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 modules/services/syncthing/default.nix (limited to 'modules/services/syncthing') diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix deleted file mode 100644 index 7f795bf..0000000 --- a/modules/services/syncthing/default.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ config, pkgs, lib, ... }: -let - cfg = config.my.services.syncthing; - secrets = config.age.secrets; -in -{ - options.my.services.syncthing = with lib; { - enable = mkEnableOption "syncthing service"; - }; - - config = lib.mkIf cfg.enable { - services.syncthing = { - enable = true; - openDefaultPorts = true; - user = "fcuny"; - group = "users"; - dataDir = "/home/fcuny/.local/state/syncthing"; - cert = secrets."syncthing/cert".path; - key = secrets."syncthing/key".path; - - folders.Documents = { - path = "/home/fcuny/documents"; - devices = [ "aptos" "tahoe" ]; - }; - - folders.PixelCamera = { - path = "/home/fcuny/media/pixel/camera"; - id = "pixel_5_vwsr-photos"; - devices = lib.attrNames config.services.syncthing.devices; - }; - - devices = { - aptos = { - id = - "JAN5UMH-2FAQQ7S-KLQ2YXM-C7KKK7U-HVHUK7I-CWOZQRM-VLQSO63-ZTP4WAN"; - introducer = false; - }; - tahoe = { - id = - "4Y36C3Y-LUTO6LD-JXNV73B-FLXSTNP-5Q3CSPY-HESHTPH-EDYA54K-WEICJAJ"; - introducer = true; - }; - pixel = { - id = - "J3JQFCJ-MY5RCF7-4NXMVU5-2JECKWO-UHFUS5T-KO64EMB-RNUV4F2-ZQ7Z6A6"; - introducer = false; - }; - }; - }; - }; -} -- cgit 1.4.1