mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-29 03:26:14 +01:00
fd57407030
Signed-off-by: main <magic_rb@redalder.org>
22 lines
423 B
Nix
22 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/";
|
|
};
|
|
});
|
|
}
|