From e8f505a6e38eaf856f88fbce4c0f8ca506b6ccd0 Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 13 Feb 2024 22:10:40 +0900 Subject: [PATCH] Update syncthing --- nixos/common/services/syncthing.nix | 16 ++++++++++++++++ nixos/hosts/nixos-framework/syncthing.nix | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 nixos/common/services/syncthing.nix diff --git a/nixos/common/services/syncthing.nix b/nixos/common/services/syncthing.nix new file mode 100644 index 00000000..c06e7f3c --- /dev/null +++ b/nixos/common/services/syncthing.nix @@ -0,0 +1,16 @@ +{pkgs, config, ... }: { + services.syncthing = { + settings = { + devics = { + "win10-desktop" = { + name = "win10-desktop"; + id = "VDAEJGQ-RA7GAT5-KLA7SRL-X2CV2EG-RMRMD6Z-TFE36JA-2TBBQG2-ED346AL"; + }; + "framework-server" = { + name = "framework-server"; + id = "ULRNA7N-Q7WTZR3-PDQW52W-IWT4UOG-ABF5RCT-W6XJXOW-WQTJIWR-GBFUJQR"; + }; + }; + }; + }; +} \ No newline at end of file diff --git a/nixos/hosts/nixos-framework/syncthing.nix b/nixos/hosts/nixos-framework/syncthing.nix index 09eda5b6..f1a448a6 100644 --- a/nixos/hosts/nixos-framework/syncthing.nix +++ b/nixos/hosts/nixos-framework/syncthing.nix @@ -1,4 +1,6 @@ { pkgs, config, hostname, username, ... }: { + imports = [ ../../common/services/syncthing.nix ]; + services.syncthing = { enable = true; user = "${username}"; @@ -7,7 +9,10 @@ "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/"; }; };