From 2710145bf95054c9e88cbe85f315130bc13d02f1 Mon Sep 17 00:00:00 2001 From: Jack Mechem Date: Mon, 16 Mar 2026 12:18:40 -0700 Subject: [PATCH] Syncthing --- hosts/dellserv/configuration.nix | 1 + hosts/desktop/configuration.nix | 1 + hosts/t480/configuration.nix | 1 + modules/nixos/syncthing.nix | 11 +++++++++++ 4 files changed, 14 insertions(+) create mode 100644 modules/nixos/syncthing.nix diff --git a/hosts/dellserv/configuration.nix b/hosts/dellserv/configuration.nix index dc23d66..99bb1e8 100644 --- a/hosts/dellserv/configuration.nix +++ b/hosts/dellserv/configuration.nix @@ -10,6 +10,7 @@ ./hardware-configuration.nix inputs.home-manager.nixosModules.default ../../modules/nixos/user-jack.nix + ../../modules/nixos/syncthing.nix ]; # Use the systemd-boot EFI boot loader. diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 33c6611..c507bac 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -17,6 +17,7 @@ ../../modules/nixos/user-jack.nix ../../modules/nixos/sound.nix ../../modules/nixos/print.nix + ../../modules/nixos/syncthing.nix ]; boot.loader.systemd-boot.enable = true; diff --git a/hosts/t480/configuration.nix b/hosts/t480/configuration.nix index e7ebd09..c20f713 100644 --- a/hosts/t480/configuration.nix +++ b/hosts/t480/configuration.nix @@ -16,6 +16,7 @@ ../../modules/nixos/system-packages.nix ../../modules/nixos/user-jack.nix ../../modules/nixos/sound.nix + ../../modules/nixos/syncthing.nix ]; boot.loader.systemd-boot.enable = true; diff --git a/modules/nixos/syncthing.nix b/modules/nixos/syncthing.nix new file mode 100644 index 0000000..a79abb1 --- /dev/null +++ b/modules/nixos/syncthing.nix @@ -0,0 +1,11 @@ +{ + ... +}: +{ + services.syncthing = { + enable = true; + openDefaultPorts = true; + }; + + networking.firewall.allowedTCPPorts = [ 8384 ]; +}