update: added preliminary syncthing module
This commit is contained in:
parent
abd6281f33
commit
9780b5cbf9
1 changed files with 44 additions and 0 deletions
44
modules/features/connectivity/syncthing.nix
Normal file
44
modules/features/connectivity/syncthing.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# base level inputs and arguments, should only ever be self and inputs
|
||||
{ self, inputs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# module name declaration
|
||||
flake.modules.nixos.syncthing =
|
||||
|
||||
# function inputs and arguments
|
||||
{ pkgs, user-parts, ... }:
|
||||
|
||||
# system level configuration options
|
||||
{
|
||||
|
||||
# import system level module for home manager functionality
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
|
||||
# opens network ports for syncthing
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 8384 ];
|
||||
allowedUDPPorts = [ 8834 ];
|
||||
};
|
||||
|
||||
# system level syncthing options go here
|
||||
services.syncthing = {
|
||||
#enable = true;
|
||||
};
|
||||
|
||||
# user level configuration options
|
||||
home-manager.users.${user-parts.user.username} = {
|
||||
|
||||
# import home manager modules here
|
||||
#imports = [ ];
|
||||
|
||||
# user level syncthing options go here
|
||||
services.syncthing = {
|
||||
#enable = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue