From 7df65933f7fb7cd0b9c9a4f7d221690e629376c8 Mon Sep 17 00:00:00 2001 From: Ryan Clark Date: Fri, 8 Mar 2024 09:56:42 -0600 Subject: [PATCH] Add syncthing to list of installed packages --- hosts/common/optional/syncthing.nix | 30 ++++++++++++++++++++ hosts/common/users/administrator/default.nix | 1 + 2 files changed, 31 insertions(+) create mode 100644 hosts/common/optional/syncthing.nix diff --git a/hosts/common/optional/syncthing.nix b/hosts/common/optional/syncthing.nix new file mode 100644 index 00000000..cbba5c64 --- /dev/null +++ b/hosts/common/optional/syncthing.nix @@ -0,0 +1,30 @@ +# https://docs.syncthing.net/users/config.html +{ + pkgs, + ... +}: + +{ + services = { + syncthing = { + enable = true; + dataDir = "/home/administrator"; + group = "syncthing"; + guiAddress = "127.0.0.1:8384"; + openDefaultPorts = true; + package = pkgs.syncthing; + settings = { + gui = { + theme = "black"; + }; + folders = { + "/home/administrator/Documents" ={ + id = "documents_sync"; + }; + }; + }; + systemService = true; + user = "syncthing"; + }; + }; +} \ No newline at end of file diff --git a/hosts/common/users/administrator/default.nix b/hosts/common/users/administrator/default.nix index f06daf90..a822d547 100644 --- a/hosts/common/users/administrator/default.nix +++ b/hosts/common/users/administrator/default.nix @@ -25,6 +25,7 @@ in "git" "libvirtd" "deluge" + "syncthing" ]; openssh.authorizedKeys.keys = [ (builtins.readFile ../../../../home/ssh.pub) ];