From 375b893a430831c3216862cc18bcad767c02d6fd Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Sun, 17 Nov 2024 15:04:22 +0100 Subject: [PATCH] treewide: add syncthing --- hosts/solaire/default.nix | 2 ++ hosts/vamos/default.nix | 2 ++ system/services/syncthing.nix | 8 ++++++++ system/syncthing/default.nix | 8 -------- 4 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 system/services/syncthing.nix delete mode 100644 system/syncthing/default.nix diff --git a/hosts/solaire/default.nix b/hosts/solaire/default.nix index 4d08433..b9787be 100644 --- a/hosts/solaire/default.nix +++ b/hosts/solaire/default.nix @@ -16,6 +16,8 @@ in { "${system}/programs/gnome.nix" "${system}/programs/games.nix" "${system}/hardware/nvidia.nix" + + "${system}/services/syncthing.nix" ]; home-manager = { diff --git a/hosts/vamos/default.nix b/hosts/vamos/default.nix index b36b2c7..135a692 100644 --- a/hosts/vamos/default.nix +++ b/hosts/vamos/default.nix @@ -24,6 +24,8 @@ in { "${system}/programs/niri" "${system}/services/gnome.nix" "${system}/services/mail.nix" + + "${system}/services/syncthing.nix" ]; home-manager = { diff --git a/system/services/syncthing.nix b/system/services/syncthing.nix new file mode 100644 index 0000000..3922ad7 --- /dev/null +++ b/system/services/syncthing.nix @@ -0,0 +1,8 @@ +{ + services = { + syncthing = { + enable = true; + }; + }; + systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true"; # Don't create default ~/Sync folder +} diff --git a/system/syncthing/default.nix b/system/syncthing/default.nix deleted file mode 100644 index 4e16097..0000000 --- a/system/syncthing/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ - services = { - syncthing = { - enable = true; - systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true"; # Don't create default ~/Sync folder - }; - }; -}