From abd6a31c90b704140115681e37a96d1dd4cbdc08 Mon Sep 17 00:00:00 2001 From: "Agatha V. Lovelace" Date: Wed, 4 Oct 2023 14:57:52 +0200 Subject: [PATCH] Add syncthing --- common/fragments/graphical/syncthing.nix | 9 +++++++++ hosts/tears/configuration.nix | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 common/fragments/graphical/syncthing.nix diff --git a/common/fragments/graphical/syncthing.nix b/common/fragments/graphical/syncthing.nix new file mode 100644 index 0000000..bf6c3e0 --- /dev/null +++ b/common/fragments/graphical/syncthing.nix @@ -0,0 +1,9 @@ +{ + services.syncthing = { + enable = true; + user = "agatha"; + openDefaultPorts = true; + overrideFolders = false; + overrideDevices = false; + }; +} diff --git a/hosts/tears/configuration.nix b/hosts/tears/configuration.nix index 93745fc..361bdc2 100644 --- a/hosts/tears/configuration.nix +++ b/hosts/tears/configuration.nix @@ -2,6 +2,7 @@ imports = [ ./hardware-configuration.nix ../../common/fragments/graphical + ../../common/fragments/graphical/syncthing.nix ../../common/fragments/yubikey.nix ../../common/home_manager/common.nix ]; @@ -74,6 +75,9 @@ }; environment.graphical.theme.name = "bridge"; + + services.syncthing.dataDir = "/mnt/hdd/syncthing"; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave