diff --git a/hosts/dellserv/configuration.nix b/hosts/dellserv/configuration.nix index 99bb1e8..9a15263 100644 --- a/hosts/dellserv/configuration.nix +++ b/hosts/dellserv/configuration.nix @@ -10,7 +10,7 @@ ./hardware-configuration.nix inputs.home-manager.nixosModules.default ../../modules/nixos/user-jack.nix - ../../modules/nixos/syncthing.nix + ../../modules/nixos/syncthingServer.nix ]; # Use the systemd-boot EFI boot loader. diff --git a/modules/nixos/syncthing.nix b/modules/nixos/syncthing.nix index a79abb1..3b3ca1f 100644 --- a/modules/nixos/syncthing.nix +++ b/modules/nixos/syncthing.nix @@ -5,6 +5,8 @@ services.syncthing = { enable = true; openDefaultPorts = true; + user = "jack"; + dataDir = "/home/jack"; }; networking.firewall.allowedTCPPorts = [ 8384 ]; diff --git a/modules/nixos/syncthingServer.nix b/modules/nixos/syncthingServer.nix new file mode 100644 index 0000000..a79abb1 --- /dev/null +++ b/modules/nixos/syncthingServer.nix @@ -0,0 +1,11 @@ +{ + ... +}: +{ + services.syncthing = { + enable = true; + openDefaultPorts = true; + }; + + networking.firewall.allowedTCPPorts = [ 8384 ]; +}