mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 08:04:20 +01:00
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/";
|
||
|
};
|
||
|
});
|
||
|
}
|