From 8bbb6b05a4329417a698faa20daa20563d78202b Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 13 Feb 2024 22:59:46 +0900 Subject: [PATCH] test --- nixos/hosts/nixos-framework/syncthing.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/nixos/hosts/nixos-framework/syncthing.nix b/nixos/hosts/nixos-framework/syncthing.nix index c0586789..2a4c0836 100644 --- a/nixos/hosts/nixos-framework/syncthing.nix +++ b/nixos/hosts/nixos-framework/syncthing.nix @@ -1,21 +1,31 @@ { pkgs, config, hostname, username, ... }: { imports = [ ../../common/services/syncthing.nix ]; + # Set up the secrets file: + sops.secrets."syncthing-cert" = { + owner = "syncthing"; + sopsFile = ../../../secrets/hosts/nixos-framework.yaml; + restartUnits = [ "syncthing.service" ]; + }; + sops.secrets."syncthing-key" = { + owner = "syncthing"; + sopsFile = ../../../secrets/hosts/nixos-framework.yaml; + restartUnits = [ "syncthing.service" ]; + }; + services.syncthing = { enable = true; + cert = "/run/secrets/syncthing-cert"; + key = "/run/secrets/syncthing-key"; user = "${username}"; - configDir = "/home/${username}/Documents/.config/syncthing"; + configDir = "/home/${username}/.config/syncthing"; overrideDevices = true; overrideFolders = true; settings = { folders = { "world-of-warcraft" = { - enable = true; id = "ergcw-ay6yg"; - devices = [ - "framework-server" - "win10-desktop" - ]; + devices = [ "framework-server" "win10-desktop" ]; path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/"; }; };