mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-12-07 07:24:47 +01:00
fd57407030
Signed-off-by: main <magic_rb@redalder.org>
21 lines
423 B
Nix
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/";
|
|
};
|
|
});
|
|
}
|