Easy nixos vpn containers

This commit is contained in:
2022-04-09 01:01:14 -04:00
parent 809dd0b5eb
commit 3158f8c3af
2 changed files with 16 additions and 8 deletions

View File

@@ -121,12 +121,14 @@ in {
};
# wrap radio in a VPN
containers.vpn-container = mkVpnContainer {
containers.vpn = mkVpnContainer pkgs "/dev/null" {
services.radio = {
enable = true;
host = "radio.neet.space";
};
};
# containers cannot unlock their own secrets right now. unlock it here
age.secrets."pia-login.conf".file = ../../secrets/pia-login.conf;
services.drastikbot = {
enable = true;
@@ -262,7 +264,7 @@ in {
networking.nat.enable = true;
networking.nat.internalInterfaces = [
"dns0" # iodine
"ve-vpn-continer" # vpn container
"ve-vpn" # vpn container
];
networking.nat.externalInterface = "enp1s0";