Fixed some bugs
This commit is contained in:
+3
-3
@@ -55,7 +55,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
vpn = {
|
vpn = {
|
||||||
enable = mkEnableOption ''Enable vpn'';
|
enable = mkEnableOption "Enable vpn";
|
||||||
|
|
||||||
wgConf = mkOption {
|
wgConf = mkOption {
|
||||||
type = types.nullOr types.path;
|
type = types.nullOr types.path;
|
||||||
@@ -150,7 +150,7 @@ in {
|
|||||||
};
|
};
|
||||||
transmission = {
|
transmission = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "transmission";
|
group = "media";
|
||||||
uid = lib.mkForce 70;
|
uid = lib.mkForce 70;
|
||||||
};
|
};
|
||||||
prowlarr = {
|
prowlarr = {
|
||||||
@@ -190,7 +190,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
util-nixarr.vpnnamespace = {
|
util-nixarr.vpnnamespace = {
|
||||||
enable = true;
|
enable = cfg.vpn.enable;
|
||||||
accessibleFrom = [
|
accessibleFrom = [
|
||||||
"192.168.1.0/24"
|
"192.168.1.0/24"
|
||||||
"127.0.0.1"
|
"127.0.0.1"
|
||||||
|
|||||||
@@ -13,10 +13,7 @@ with lib; let
|
|||||||
cfg = config.util-nixarr.vpnnamespace;
|
cfg = config.util-nixarr.vpnnamespace;
|
||||||
in {
|
in {
|
||||||
options.util-nixarr.vpnnamespace = {
|
options.util-nixarr.vpnnamespace = {
|
||||||
enable =
|
enable = mkEnableOption ''
|
||||||
mkEnableOption (lib.mdDoc "VPN Namespace")
|
|
||||||
// {
|
|
||||||
description = lib.mdDoc ''
|
|
||||||
Whether to enable the VPN namespace.
|
Whether to enable the VPN namespace.
|
||||||
|
|
||||||
To access the namespace a veth pair is used to
|
To access the namespace a veth pair is used to
|
||||||
@@ -35,7 +32,6 @@ in {
|
|||||||
NetworkNamespacePath = "/var/run/netns/wg";
|
NetworkNamespacePath = "/var/run/netns/wg";
|
||||||
};
|
};
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
|
|
||||||
accessibleFrom = mkOption {
|
accessibleFrom = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
|
|||||||
Reference in New Issue
Block a user