From 219a1b4d0e013bc6f0ada851cf00d3c6cd6c3b51 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Fri, 18 Feb 2022 17:15:20 +0000 Subject: [PATCH] Move syncthing to user config --- hosts/dingbox/configuration.nix | 1 - hosts/dingbox/syncthing/default.nix | 28 ---------------------------- user/daniel/home.nix | 4 ++++ 3 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 hosts/dingbox/syncthing/default.nix diff --git a/hosts/dingbox/configuration.nix b/hosts/dingbox/configuration.nix index f854e62..9f6bca0 100644 --- a/hosts/dingbox/configuration.nix +++ b/hosts/dingbox/configuration.nix @@ -8,7 +8,6 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - ./syncthing ../common ../common/graphical ]; diff --git a/hosts/dingbox/syncthing/default.nix b/hosts/dingbox/syncthing/default.nix deleted file mode 100644 index d0f9e10..0000000 --- a/hosts/dingbox/syncthing/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ config, lib, pkgs, ...}: - -{ - services.syncthing = { - enable = true; - user = "daniel"; - openDefaultPorts = true; - dataDir = config.users.users.daniel.home; - devices = { - "phone" = { - id = "MZRKZDE-JOMQA4V-IGKELNR-UCZAZNG-URDOHUA-DHDGZYW-A4NVYWT-ZJLECQN"; - }; - }; - folders = { - "camera" = { - devices = ["phone"]; - id = "pixel_6_fayt-photos"; - path = "/home/daniel/Pictures/Camera"; - type = "receiveonly"; - }; - "movies" = { - devices = ["phone"]; - id = "movie_repo"; - path = "/home/daniel/Sync/movies"; - }; - }; - }; -} diff --git a/user/daniel/home.nix b/user/daniel/home.nix index 1862e54..a13a05c 100644 --- a/user/daniel/home.nix +++ b/user/daniel/home.nix @@ -15,6 +15,10 @@ services.dunst.enable = true; + services.syncthing = { + enable = true; + }; + home = { username = "daniel"; homeDirectory = "/home/daniel";