diff --git a/hosts/tohru/configuration.nix b/hosts/tohru/configuration.nix index 388c069..47e8232 100644 --- a/hosts/tohru/configuration.nix +++ b/hosts/tohru/configuration.nix @@ -7,6 +7,7 @@ ./home.nix ../../common/fonts.nix ../../common/steam.nix + ./syncthing.nix ]; boot.loader.systemd-boot.enable = true; diff --git a/hosts/tohru/syncthing.nix b/hosts/tohru/syncthing.nix new file mode 100644 index 0000000..0bd239c --- /dev/null +++ b/hosts/tohru/syncthing.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +{ + services.syncthing = { + enable = true; + user = "qenya"; + dataDir = "/data/syncthing"; + openDefaultPorts = true; + overrideDevices = true; + overrideFolders = true; + settings = { + devices = { + "kilgharrah" = { id = "RDT7IGD-76FZ6LY-37PPB2W-DWPQRPR-LZ4AXF7-4GIIHYJ-RVXUUSG-ZXPN3AZ"; }; + }; + folders = { + "Documents" = { + id = "alp59-7gs9s"; + path = "~/Documents"; + devices = [ "kilgharrah" ]; + }; + }; + }; + }; +}