update
This commit is contained in:
22
modules/holocron/syncthing/default.nix
Normal file
22
modules/holocron/syncthing/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
|
||||
let
|
||||
service = "syncthing";
|
||||
cfg = config.holocron.${service};
|
||||
in
|
||||
{
|
||||
options.system.syncthing = {
|
||||
enable = lib.mkEnableOption "enables syncthing";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
# user = "blake";
|
||||
# group = "blake";
|
||||
# dataDir = "/var/lib/syncthing";
|
||||
guiAddress = "0.0.0.0:2222";
|
||||
# openDefaultPorts = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user