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/"; + }; + }; + }; +}