Cleaned mkEnableOption mess

This commit is contained in:
rasmus-kirk
2024-02-26 17:57:01 +01:00
parent b49cae6b20
commit 0c61369307
9 changed files with 150 additions and 88 deletions
+8 -4
View File
@@ -17,11 +17,15 @@ in {
description = "The state directory for Readarr";
};
vpn.enable = mkEnableOption ''
**Required options:** [`nixarr.vpn.enable`](/options.html#nixarr.vpn.enable)
vpn.enable = mkOption {
type = types.bool;
default = false;
description = ''
**Required options:** [`nixarr.vpn.enable`](/options.html#nixarr.vpn.enable)
Route Readarr traffic through the VPN.
'';
Route Readarr traffic through the VPN.
'';
};
};
config = mkIf cfg.enable {