feat: add enable option for syncthing

This commit is contained in:
Jacob Bachmann 2024-07-12 14:42:19 +02:00
parent b090bf38ab
commit 807eb7efba
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
7 changed files with 19 additions and 13 deletions

View file

@ -38,6 +38,10 @@
enable = mkEnableOption "vpn";
};
sync = {
enable = mkEnableOption "sync";
};
devenv = {
enable = mkEnableOption "devenv";
};

View file

@ -1,4 +1,4 @@
{ ... }: {
{ lib, config, ... }: lib.mkIf config.bchmnn.sync.enable {
services.syncthing = {
enable = true;

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }: lib. mkIf config.bchmnn.vpn.enable {
{ pkgs, lib, config, ... }: lib.mkIf config.bchmnn.vpn.enable {
environment.systemPackages = with pkgs; [
openvpn3