Fixed some bugs

This commit is contained in:
rasmus-kirk
2024-02-24 21:30:00 +01:00
parent f1e1b59ba5
commit 435cdd10ec
2 changed files with 18 additions and 22 deletions
+3 -3
View File
@@ -55,7 +55,7 @@ in {
};
vpn = {
enable = mkEnableOption ''Enable vpn'';
enable = mkEnableOption "Enable vpn";
wgConf = mkOption {
type = types.nullOr types.path;
@@ -150,7 +150,7 @@ in {
};
transmission = {
isSystemUser = true;
group = "transmission";
group = "media";
uid = lib.mkForce 70;
};
prowlarr = {
@@ -190,7 +190,7 @@ in {
];
util-nixarr.vpnnamespace = {
enable = true;
enable = cfg.vpn.enable;
accessibleFrom = [
"192.168.1.0/24"
"127.0.0.1"
+1 -5
View File
@@ -13,10 +13,7 @@ with lib; let
cfg = config.util-nixarr.vpnnamespace;
in {
options.util-nixarr.vpnnamespace = {
enable =
mkEnableOption (lib.mdDoc "VPN Namespace")
// {
description = lib.mdDoc ''
enable = mkEnableOption ''
Whether to enable the VPN namespace.
To access the namespace a veth pair is used to
@@ -35,7 +32,6 @@ in {
NetworkNamespacePath = "/var/run/netns/wg";
};
'';
};
accessibleFrom = mkOption {
type = types.listOf types.str;