feat: non-working ehex VPN

This commit is contained in:
Benjamin Bädorf 2024-01-24 21:17:31 +01:00
parent 71f442aeea
commit 41387a3f38
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346
5 changed files with 37 additions and 0 deletions

BIN
secrets/ehex-vpn.creds.age Normal file

Binary file not shown.

BIN
secrets/ehex.ovpn.age Normal file

Binary file not shown.

View file

@ -52,6 +52,9 @@ in {
"cat-test.ovpn.age".publicKeys = biolimoKeys ++ chocolatebarKeys ++ baseKeys; "cat-test.ovpn.age".publicKeys = biolimoKeys ++ chocolatebarKeys ++ baseKeys;
"ehex.ovpn.age".publicKeys = biolimoKeys ++ chocolatebarKeys ++ baseKeys;
"ehex-vpn.creds.age".publicKeys = biolimoKeys ++ chocolatebarKeys ++ baseKeys;
"firefly-secrets.env.age".publicKeys = pieKeys ++ baseKeys; "firefly-secrets.env.age".publicKeys = pieKeys ++ baseKeys;
"firefly-db-secrets.env.age".publicKeys = pieKeys ++ baseKeys; "firefly-db-secrets.env.age".publicKeys = pieKeys ++ baseKeys;
"firefly-importer-secrets.env.age".publicKeys = pieKeys ++ baseKeys; "firefly-importer-secrets.env.age".publicKeys = pieKeys ++ baseKeys;

View file

@ -12,6 +12,7 @@ in {
./home.nix ./home.nix
./session-variables.nix ./session-variables.nix
./concepts-and-training.nix ./concepts-and-training.nix
./ehex.nix
./email ./email
]; ];

33
users/b12f/ehex.nix Normal file
View file

@ -0,0 +1,33 @@
{
config,
pkgs,
lib,
flake,
...
}:
with lib; let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
tmpConfigDir = "/tmp/ovpn/ehex";
tmpConfigFile = "${tmpConfigDir}/conf.ovpn";
in {
age.secrets."ehex.ovpn" = {
file = "${flake.self}/secrets/cat-test.ovpn.age";
mode = "400";
};
age.secrets."ehex-vpn.creds" = {
file = "${flake.self}/secrets/ehex-vpn.creds.age";
mode = "400";
};
services.openvpn.servers = {
ehexVPN = {
autoStart = false;
config = ''
config ${config.age.secrets."ehex.ovpn".path}
# auth-user-pass ${config.age.secrets."ehex-vpn.creds".path}
'';
};
};
}