mio-ops/modules/profiles/toxvpn/default.nix

25 lines
573 B
Nix

# VPN configuration for MIO.
{
config,
lib,
pkgs,
nixpkgsUnstable,
...
}:
with lib; let
cfg = config.profiles.toxvpn;
toxvpn = nixpkgsUnstable.toxvpn;
in {
options.profiles.toxvpn = {
enable = mkEnableOption "to enable toxvpn.";
};
config = mkIf (cfg.enable) {
services.toxvpn = {
enable = true;
auto_add_peers = [
"7708050f6b7ad32e2a6943bd4aa97fe90053090e1197bd96f3dbedfd324e49605ca3e577ef47" # sanganto
"a18dfff426f5a752eb1bdc90ea307850982c1dff1444caf72b75f73483e358213b60281235a4" # eamhair
];
};
};
}