load pia secret for container

This commit is contained in:
zuckerberg 2021-06-22 21:12:42 -04:00
parent 0cbcc30aa1
commit cfaefc1536

View File

@ -35,6 +35,12 @@
isReadOnly = false;
};
};
bindMounts = {
"/run/secrets" = {
hostPath = "/run/secrets";
isReadOnly = true;
};
};
enableTun = true;
privateNetwork = true;
hostAddress = "172.16.100.1";
@ -105,6 +111,8 @@
proxyPass = "http://172.16.100.2:9117";
};
};
# load the secret on behalf of the container
age.secrets."pia-login.conf".file = ../../secrets/pia-login.conf;
networking.nat.enable = true;
networking.nat.internalInterfaces = [ "ve-jellyfin" ];