From c280cd7966416a2b718bcc5315294c80919c29f0 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 6 Apr 2021 16:17:36 -0400 Subject: [PATCH] Add syncthing --- configuration.nix | 9 ++++++++- flake.nix | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index dacc189..14f9d05 100644 --- a/configuration.nix +++ b/configuration.nix @@ -69,7 +69,14 @@ vscode ]; - services.openssh.enable = true; + services = { + openssh.enable = true; + syncthing = { + enable = true; + user = "srid"; + dataDir = "/home/srid"; + }; + }; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; diff --git a/flake.nix b/flake.nix index 03ec8ae..df6799b 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ /* ({ pkgs, ... }: { system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; nix.registry.nixpkgs.flake = nixpkgs; - }) */ + }) */ ./configuration.nix home-manager.nixosModules.home-manager {