🚀 add openvpn service

nixos
Moritz Böhme 2022-03-07 12:02:20 +01:00
parent eb17617025
commit eabb8bd1a7
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
5 changed files with 17 additions and 0 deletions

View File

@ -18,5 +18,9 @@
file = ../../secrets/spotifyd.age;
owner = "1000";
};
homeVPN = {
file = ../../secrets/home-vpn.age;
owner = "1000";
};
};
}

View File

@ -9,6 +9,7 @@
./jupyter.nix
./kdeconnect.nix
./keyring.nix
./openvpn.nix
./picom.nix
];

View File

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
services.openvpn.servers = {
homeVPN = {
config = "config /run/agenix/homeVPN ";
autoStart = false;
updateResolvConf = true;
};
};
}

BIN
secrets/home-vpn.age Normal file

Binary file not shown.

View File

@ -16,4 +16,5 @@ in {
"spotifyd.age".publicKeys = users ++ hosts;
"email-desktop.age".publicKeys = users ++ hosts;
"email-laptop.age".publicKeys = users ++ hosts;
"home-vpn.age".publicKeys = users ++ hosts;
}