Commit 4d575f42882b

Vincent Demeester <vincent@sbr.pm>
2017-11-25 13:32:09
Add syncthing to desktop profile
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 26f2124
Changed files (2)
profiles/desktop.nix
@@ -7,11 +7,12 @@
 		./printing.nix
 		./scanning.nix
 		./avahi.nix
+		./syncthing.nix
 	];
 
 	boot.loader.systemd-boot.enable = true;
 	boot.loader.efi.canTouchEfiVariables = true;
-	boot.kernelPackages = pkgs.linuxPackages_4_12;
+	#boot.kernelPackages = pkgs.linuxPackages_4_12;
 	boot.tmpOnTmpfs = true;
 
 	environment.systemPackages = with pkgs; [
profiles/syncthing.nix
@@ -0,0 +1,11 @@
+{ config, pkgs, ... }:
+
+{
+	services.syncthing = {
+		enable = true;
+		useInotify = true;
+		user = "vincent";
+		dataDir = "/home/vincent/.syncthing";
+		openDefaultPorts = true;
+	};
+}
\ No newline at end of file