From 4d7624a951ace30db1e2fe3e0931519ada63a31f Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Tue, 13 Jun 2023 23:06:34 +0200 Subject: [PATCH] Add the NixNG `syncthing` container Signed-off-by: Magic_RB --- flake.nix | 2 ++ nixng/containers/syncthing/default.nix | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 nixng/containers/syncthing/default.nix diff --git a/flake.nix b/flake.nix index 28bbef1..cc7565f 100644 --- a/flake.nix +++ b/flake.nix @@ -58,6 +58,8 @@ nixng/containers/email/dovecot.nix nixng/containers/email/postfix nixng/containers/ds3os + nixng/containers/syncthing + overlays/udp-over-tcp.nix overlays/emacsclient-remote overlays/magic-screenshot diff --git a/nixng/containers/syncthing/default.nix b/nixng/containers/syncthing/default.nix new file mode 100644 index 0000000..6e48cf0 --- /dev/null +++ b/nixng/containers/syncthing/default.nix @@ -0,0 +1,24 @@ +{ inputs, ... }: +{ + flake.nixngConfigurations.syncthing = inputs.nixng.nglib.makeSystem { + system = "x86_64-linux"; + name = "ra-systems-syncthing"; + inherit (inputs) nixpkgs; + config = + { pkgs, ... }: + { + dumb-init = { + enable = true; + type.services = {}; + }; + init.services.syncthing = { + shutdownOnExit = true; + }; + + services.syncthing = { + enable = true; + guiAddress = "http://0.0.0.0:8384/"; + }; + }; + }; +}