mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-21 23:54:22 +01:00
Add the NixNG syncthing
container
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
7815dfcd46
commit
4d7624a951
|
@ -58,6 +58,8 @@
|
|||
nixng/containers/email/dovecot.nix
|
||||
nixng/containers/email/postfix
|
||||
nixng/containers/ds3os
|
||||
nixng/containers/syncthing
|
||||
|
||||
overlays/udp-over-tcp.nix
|
||||
overlays/emacsclient-remote
|
||||
overlays/magic-screenshot
|
||||
|
|
24
nixng/containers/syncthing/default.nix
Normal file
24
nixng/containers/syncthing/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ 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/";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue