feat: add enable option for syncthing
This commit is contained in:
parent
b090bf38ab
commit
807eb7efba
7 changed files with 19 additions and 13 deletions
|
|
@ -38,6 +38,10 @@
|
|||
enable = mkEnableOption "vpn";
|
||||
};
|
||||
|
||||
sync = {
|
||||
enable = mkEnableOption "sync";
|
||||
};
|
||||
|
||||
devenv = {
|
||||
enable = mkEnableOption "devenv";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
{ lib, config, ... }: lib.mkIf config.bchmnn.sync.enable {
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue