cluster/containers/syncthing.nix
main fd57407030
Add syncthing
Signed-off-by: main <magic_rb@redalder.org>
2022-04-26 09:48:03 +02:00

21 lines
423 B
Nix

{ nglib, nixpkgs }:
nglib.makeSystem {
inherit nixpkgs;
system = "x86_64-linux";
name = "ra-systems-syncthing";
config = ({ pkgs, ... }:
{
dumb-init = {
enable = true;
type.services = { };
};
init.services.syncthing = {
shutdownOnExit = true;
};
services.syncthing = {
enable = true;
guiAddress = "http://0.0.0.0:8384/";
};
});
}