Seperate syncthing for server and syncthing for clients
This commit is contained in:
parent
867755c7ff
commit
5dc7dfa232
3 changed files with 14 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
../../modules/nixos/user-jack.nix
|
../../modules/nixos/user-jack.nix
|
||||||
../../modules/nixos/syncthing.nix
|
../../modules/nixos/syncthingServer.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
|
user = "jack";
|
||||||
|
dataDir = "/home/jack";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 8384 ];
|
networking.firewall.allowedTCPPorts = [ 8384 ];
|
||||||
|
|
|
||||||
11
modules/nixos/syncthingServer.nix
Normal file
11
modules/nixos/syncthingServer.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
openDefaultPorts = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 8384 ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue