2023-05-05 16:10:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2023-11-10 18:48:06 +00:00
|
|
|
flake,
|
2023-05-05 16:10:08 +00:00
|
|
|
...
|
|
|
|
}:
|
2024-06-13 00:14:25 +00:00
|
|
|
let
|
2023-05-05 16:10:08 +00:00
|
|
|
psCfg = config.pub-solar;
|
|
|
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
age.secrets."cat-testenv.ovpn" = {
|
2023-11-10 18:48:06 +00:00
|
|
|
file = "${flake.self}/secrets/cat-testenv.ovpn.age";
|
2023-05-05 16:10:08 +00:00
|
|
|
mode = "600";
|
|
|
|
owner = psCfg.user.name;
|
|
|
|
};
|
|
|
|
|
|
|
|
age.secrets."fwknoprc" = {
|
2023-11-10 18:48:06 +00:00
|
|
|
file = "${flake.self}/secrets/fwknoprc.age";
|
2023-05-05 16:10:08 +00:00
|
|
|
path = "${config.users.users."${psCfg.user.name}".home}/.fwknoprc";
|
|
|
|
mode = "600";
|
|
|
|
owner = psCfg.user.name;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openvpn.servers = {
|
|
|
|
catVPN = {
|
|
|
|
config = ''config ${config.age.secrets."cat-testenv.ovpn".path}'';
|
|
|
|
autoStart = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
|
|
|
# programs.ssh = {
|
|
|
|
# matchBlocks = {
|
|
|
|
# "salt.base.test" = {
|
|
|
|
# hostname = "10.0.0.2";
|
|
|
|
# user = "bbaedorf";
|
|
|
|
# };
|
|
|
|
|
|
|
|
# "salt.gateway.test" = {
|
|
|
|
# hostname = "10.0.0.3";
|
|
|
|
# user = "root";
|
|
|
|
# proxyJump = "salt.base.test";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
#};
|
|
|
|
}
|