Add syncthing to alt
This commit is contained in:
parent
717f75ef94
commit
c565a01115
2 changed files with 15 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
../modules/base.nix
|
||||
../modules/kafka-mounts.nix
|
||||
../modules/server.nix
|
||||
../modules/syncthing.nix
|
||||
./caddy.nix
|
||||
];
|
||||
|
||||
|
|
@ -20,6 +21,8 @@
|
|||
privileged = true;
|
||||
};
|
||||
|
||||
services.syncthing.guiAddress = "0.0.0.0:8384";
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80 443 # caddy
|
||||
8000
|
||||
|
|
@ -27,6 +30,7 @@
|
|||
8010 # audio bookshelf
|
||||
8080 # file browser
|
||||
8234 # shiori (non-standard)
|
||||
8384 # syncthing
|
||||
9117
|
||||
8191 # flaresolverr
|
||||
];
|
||||
|
|
|
|||
11
hosts/modules/syncthing.nix
Normal file
11
hosts/modules/syncthing.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
# sync thing
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
user = "alex";
|
||||
configDir = "/home/alex/.config/syncthing";
|
||||
dataDir = "/home/alex";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue