From bb4b85013cee94d98ebab508911656be3e1415f3 Mon Sep 17 00:00:00 2001 From: materus Date: Mon, 19 Aug 2024 08:27:50 +0200 Subject: [PATCH] Old-materusPC: syncthing settings --- configurations/host/Old-materusPC/configuration.nix | 8 ++++++-- configurations/host/Old-materusPC/network.nix | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/configurations/host/Old-materusPC/configuration.nix b/configurations/host/Old-materusPC/configuration.nix index 833592f..c810e82 100755 --- a/configurations/host/Old-materusPC/configuration.nix +++ b/configurations/host/Old-materusPC/configuration.nix @@ -38,12 +38,16 @@ services.flatpak.enable = true; services.gvfs.enable = true; - + programs.kdeconnect.enable = true; # Set your time zone. time.timeZone = "Europe/Warsaw"; - + services.syncthing = { + enable = true; + user = "materus"; + dataDir = "/home/materus"; + }; services.fstrim = { enable = true; interval = "weekly"; diff --git a/configurations/host/Old-materusPC/network.nix b/configurations/host/Old-materusPC/network.nix index 8525971..7f74e92 100644 --- a/configurations/host/Old-materusPC/network.nix +++ b/configurations/host/Old-materusPC/network.nix @@ -9,8 +9,12 @@ networking.wireless.iwd.enable = true; networking.networkmanager.enable = true; # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ 24800 5900 5357 4656 ]; - networking.firewall.allowedUDPPorts = [ 24800 5900 3702 4656 ]; + networking.firewall.allowedTCPPorts = [ 24800 5900 5357 4656 + 22000 config.services.syncthing.relay.statusPort config.services.syncthing.relay.port # Syncthing + ]; + networking.firewall.allowedUDPPorts = [ 24800 5900 3702 4656 + 22000 21027 # Syncthing + ]; # Or disable the firewall altogether. networking.firewall.enable = true; networking.networkmanager.settings = {