Files
nix/users/configs/syncthing/default.nix
2024-07-07 21:05:50 +03:00

16 lines
309 B
Nix

{ user ? throw "user argument is required" }: { ... }:
{
networking.firewall = {
allowedTCPPorts = [ 22000 ];
allowedUDPPorts = [ 21027 22000 ];
};
home-manager.users.${user.name} = {
services.syncthing = {
enable = true;
extraOptions = [ "-no-default-folder" ];
};
};
}