Include fwknop into CaT VPN config
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ad1a6db3a8
commit
5aa65b766f
|
@ -16,7 +16,6 @@ in {
|
||||||
home-manager = with pkgs;
|
home-manager = with pkgs;
|
||||||
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
fwknop
|
|
||||||
croc
|
croc
|
||||||
drone-cli
|
drone-cli
|
||||||
nmap
|
nmap
|
||||||
|
|
|
@ -17,17 +17,17 @@ in {
|
||||||
|
|
||||||
age.secrets.".fwknoprc" = {
|
age.secrets.".fwknoprc" = {
|
||||||
file = "${self}/secrets/.fwknoprc";
|
file = "${self}/secrets/.fwknoprc";
|
||||||
path = "${config.users.users."${psCfg.user.name}".home}/.fwknoprc";
|
|
||||||
mode = "600";
|
mode = "600";
|
||||||
owner = psCfg.user.name;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openvpn.servers = {
|
services.openvpn.servers = {
|
||||||
catVPN = {
|
catVPN = {
|
||||||
config = ''config /run/agenix/cat-test.ovpn '';
|
config = ''config ${config.age.secrets."cat-test.ovpn".path}'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.openvpn-catVPN.serviceConfig.ExecStartPre = "${pkgs.fwknop}/bin/fwknop --rc-file=${config.age.secrets.".fwknoprc".path} --no-save-args --no-home-dir --save-args-file=/dev/null -n hetzner_test_cloud --wget-cmd=${pkgs.wget}/bin/wget";
|
||||||
|
|
||||||
home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
|
|
Loading…
Reference in a new issue