update
This commit is contained in:
parent
f27b66f878
commit
ddeaf0170d
@ -30,10 +30,6 @@
|
|||||||
inputs.hyprland.follows = "hyprland";
|
inputs.hyprland.follows = "hyprland";
|
||||||
};
|
};
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
vpnconfinement = {
|
|
||||||
url = "github:Maroka-chan/VPN-Confinement";
|
|
||||||
follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, ... }: {
|
outputs = inputs@{ nixpkgs, ... }: {
|
||||||
@ -55,7 +51,6 @@
|
|||||||
{ _module.args = { inherit inputs; }; }
|
{ _module.args = { inherit inputs; }; }
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
inputs.vpnconfinement.nixosModules.default
|
|
||||||
./hosts/server/configuration.nix
|
./hosts/server/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -71,30 +71,9 @@ in {
|
|||||||
user = "nixarr";
|
user = "nixarr";
|
||||||
group = "nixarr";
|
group = "nixarr";
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
settings = {
|
|
||||||
"rpc-bind-address" = "192.168.15.1"; # Bind RPC/WebUI to bridge address
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define VPN network namespace
|
# Transmission port
|
||||||
vpnnamespaces.wg = {
|
networking.firewall.allowedTCPPorts = [ 9091 ];
|
||||||
enable = true;
|
|
||||||
wireguardConfigFile = "/data/.secret/wg.conf";
|
|
||||||
accessibleFrom = [ "192.168.1.0/24" ];
|
|
||||||
portMappings = [{
|
|
||||||
from = 9091;
|
|
||||||
to = 9091;
|
|
||||||
}];
|
|
||||||
openVPNPorts = [{
|
|
||||||
port = 60729;
|
|
||||||
protocol = "both";
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Add systemd service to VPN network namespace.
|
|
||||||
systemd.services.transmission.vpnconfinement = {
|
|
||||||
enable = true;
|
|
||||||
vpnnamespace = "wg";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,4 @@
|
|||||||
# '';
|
# '';
|
||||||
# };
|
# };
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 9091 ];
|
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
};
|
};
|
||||||
transmission-script = {
|
transmission-script = {
|
||||||
mode = "0755";
|
mode = "0755";
|
||||||
path = "/home/jackflix/transmission-script.sh";
|
path = "/data/transmission-script.sh";
|
||||||
};
|
};
|
||||||
pia-wg = {
|
pia-wg = {
|
||||||
mode = "0755";
|
mode = "0755";
|
||||||
|
Loading…
Reference in New Issue
Block a user