l 2: add syncthing.nix
This commit is contained in:
parent
cb36b4fb7c
commit
b3463a3b82
@ -25,6 +25,7 @@ with import <stockholm/lib>;
|
||||
../2configs/repo-sync.nix
|
||||
../2configs/ircd.nix
|
||||
../2configs/logf.nix
|
||||
../2configs/syncthing.nix
|
||||
{
|
||||
#risk of rain port
|
||||
krebs.iptables.tables.filter.INPUT.rules = [
|
||||
|
@ -46,6 +46,7 @@ in {
|
||||
../2configs/monitoring/server.nix
|
||||
../2configs/monitoring/monit-alarms.nix
|
||||
../2configs/paste.nix
|
||||
../2configs/syncthing.nix
|
||||
{
|
||||
imports = [
|
||||
../2configs/bepasty.nix
|
||||
|
12
lass/2configs/syncthing.nix
Normal file
12
lass/2configs/syncthing.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ config, pkgs, ... }:
|
||||
with import <stockholm/lib>;
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
useInotify = true;
|
||||
};
|
||||
krebs.iptables.tables.filter.INPUT.rules = [
|
||||
{ predicate = "-p tcp --dport 22000"; target = "ACCEPT";}
|
||||
{ predicate = "-p udp --dport 21027"; target = "ACCEPT";}
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user