diff --git a/nixos/boxes/bolty/default.nix b/nixos/boxes/bolty/default.nix index 29387df7..c16e92f7 100644 --- a/nixos/boxes/bolty/default.nix +++ b/nixos/boxes/bolty/default.nix @@ -23,6 +23,7 @@ ./tailscale-cert.nix ./videos.nix ./virtualisation.nix + ./syncthing.nix ]; boot.binfmt.emulatedSystems = ["aarch64-linux"]; programs.ccache.enable = true; diff --git a/nixos/boxes/bolty/syncthing.nix b/nixos/boxes/bolty/syncthing.nix new file mode 100644 index 00000000..6d404951 --- /dev/null +++ b/nixos/boxes/bolty/syncthing.nix @@ -0,0 +1,25 @@ +{ + config, + pkgs, + inputs, + system, + ... +}: { + services.syncthing = { + enable = true; + dataDir = "/data/syncthing/"; + openDefaultPorts = true; + package = + inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".syncthing; + + overrideDevices = false; + overrideFolders = false; + settings = { + devices = { + "foryog" = { + id = "Q4AA3LA-QIMMBNK-QWKW2AL-5SRGBU3-RYWD5EH-GKMVXRT-XVYFU3R-UYAAMAH"; + }; + }; + }; + }; +} diff --git a/nixos/syncthing.nix b/nixos/syncthing.nix index e8943b19..a0b39e37 100644 --- a/nixos/syncthing.nix +++ b/nixos/syncthing.nix @@ -16,8 +16,12 @@ in { package = inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".syncthing; overrideDevices = false; + overrideFolders = false; settings = { devices = { + "bolty" = { + id = "RWRDHMX-6XVZDIP-7A36KBY-SIOAGHJ-RDQALMZ-VX5KY4J-4CNNNWH-HIAZHQL"; + }; "OnePlus9" = { id = "2UVDAHX-IWQEBLF-6VOYLWO-MYQBMO2-62QPM76-CFYPPZW-CWVIBZF-JEUS4QZ"; };