restructure system to be toggable
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "blake";
|
||||
group = "blake";
|
||||
options = {
|
||||
modules.system.syncthing.enable = lib.mkEnableOption "enables syncthing";
|
||||
};
|
||||
|
||||
dataDir = "/home/blake/.local/state/syncthing";
|
||||
configDir = "/home/blake/.config/syncthing";
|
||||
config = lib.mkIf config.modules.system.syncthing.enable {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "blake";
|
||||
group = "blake";
|
||||
|
||||
# webui
|
||||
guiAddress = "0.0.0.0:2222";
|
||||
openDefaultPorts = true;
|
||||
dataDir = "/home/blake/.local/state/syncthing";
|
||||
configDir = "/home/blake/.config/syncthing";
|
||||
|
||||
# webui
|
||||
guiAddress = "0.0.0.0:2222";
|
||||
openDefaultPorts = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user