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