mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 01:42:02 +01:00
25 lines
526 B
Nix
25 lines
526 B
Nix
|
{ inputs, ... }:
|
||
|
{
|
||
|
flake.nixngConfigurations.syncthing = inputs.nixng.nglib.makeSystem {
|
||
|
system = "x86_64-linux";
|
||
|
name = "ra-systems-syncthing";
|
||
|
inherit (inputs) nixpkgs;
|
||
|
config =
|
||
|
{ pkgs, ... }:
|
||
|
{
|
||
|
dumb-init = {
|
||
|
enable = true;
|
||
|
type.services = {};
|
||
|
};
|
||
|
init.services.syncthing = {
|
||
|
shutdownOnExit = true;
|
||
|
};
|
||
|
|
||
|
services.syncthing = {
|
||
|
enable = true;
|
||
|
guiAddress = "http://0.0.0.0:8384/";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|