cluster/containers/syncthing.nix

22 lines
423 B
Nix
Raw Permalink Normal View History

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