Testing
This commit is contained in:
parent
fe24e4e0df
commit
3565bc1cd3
5 changed files with 18 additions and 0 deletions
nixos
common/services
hosts
9
nixos/common/services/syncthing-relay.nix
Normal file
9
nixos/common/services/syncthing-relay.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, ... }: {
|
||||
networking.interfaces.tailscale0.firewall.allowedTCPPorts = [ 22067 22070 ];
|
||||
|
||||
services.syncthing.relay = {
|
||||
enable = true;
|
||||
pools = "";
|
||||
providedBy = config.networking.hostName;
|
||||
};
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
{ config, lib, username, deployment_type, desktop, ... }: {
|
||||
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||
|
||||
imports = [ ] ++ lib.optional (builtins.isString desktop) ./syncthing-desktop.nix;
|
||||
# Set up the secrets file:
|
||||
|
@ -29,6 +30,11 @@
|
|||
configDir = "/home/${username}/.config/syncthing";
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
relay = {
|
||||
enable = true;
|
||||
pools = "";
|
||||
providedBy = config.networking.hostName;
|
||||
};
|
||||
settings = {
|
||||
options = {
|
||||
urAccepted = -1;
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
../../common/services/tailscale-autoconnect.nix
|
||||
../../common/services/forgejo-runner.nix
|
||||
../../common/services/syncthing.nix
|
||||
../../common/services/syncthing-relay.nix
|
||||
# Disabling -- I don't know why but this all of a sudden breaks Headscale.
|
||||
# Sep 12 2024
|
||||
# ../../common/modules/fail2ban/traefik.nix
|
||||
|
|
|
@ -12,6 +12,7 @@ in {
|
|||
../../common/services/docker.nix
|
||||
../../common/services/forgejo-runner.nix
|
||||
../../common/services/syncthing.nix
|
||||
../../common/services/syncthing-relay.nix
|
||||
./disks.nix
|
||||
./mounts.nix
|
||||
./cron.nix
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
../../common/services/tailscale-autoconnect.nix
|
||||
../../common/services/forgejo-runner.nix
|
||||
../../common/services/syncthing.nix
|
||||
../../common/services/syncthing-relay.nix
|
||||
|
||||
# Copy from framework-server
|
||||
../framework-server/cron.nix
|
||||
|
|
Loading…
Add table
Reference in a new issue