From a42e2ef08ecc74122e5326a2ced72bc6e71afcb6 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 7 Apr 2021 13:22:10 -0400 Subject: [PATCH] Enable syncthing in p71 --- flake.nix | 1 + modules/syncthing.nix | 9 +++++++++ x1c7/configuration.nix | 5 ----- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 modules/syncthing.nix diff --git a/flake.nix b/flake.nix index cd018b0..cb05f08 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,7 @@ # System configuration configurationNix ./modules/passwordstore.nix + ./modules/syncthing.nix ./modules/protonmail-bridge.nix ./modules/monitor-brightness.nix diff --git a/modules/syncthing.nix b/modules/syncthing.nix new file mode 100644 index 0000000..16f1532 --- /dev/null +++ b/modules/syncthing.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: { + services = { + syncthing = { + enable = true; + user = "srid"; + dataDir = "/home/srid"; + }; + }; +} diff --git a/x1c7/configuration.nix b/x1c7/configuration.nix index 870e8f3..b8789d5 100644 --- a/x1c7/configuration.nix +++ b/x1c7/configuration.nix @@ -72,11 +72,6 @@ services = { openssh.enable = true; - syncthing = { - enable = true; - user = "srid"; - dataDir = "/home/srid"; - }; }; # Open ports in the firewall.