add syncthing
This commit is contained in:
parent
1b4810e72a
commit
4566fbb887
2 changed files with 25 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
./hydra.nix
|
||||
./jellyfin.nix
|
||||
./system-logger
|
||||
./syncthing.nix
|
||||
./tailscale.nix
|
||||
./vaultwarden.nix
|
||||
./vscode-server.nix
|
||||
|
|
|
|||
24
modules/services/syncthing.nix
Normal file
24
modules/services/syncthing.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
myModules.enableSyncthing = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable Syncthing file synchronization service";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.myModules.enableSyncthing {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
# port is 8384
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue