2024-07-12 10:15:14 +07:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
let
|
|
|
|
sopsFile = ../../secrets/bareksa.yaml;
|
|
|
|
in
|
|
|
|
{
|
2024-07-12 12:42:48 +07:00
|
|
|
sops.secrets = {
|
|
|
|
"bareksa/openvpn" = {
|
|
|
|
inherit sopsFile;
|
|
|
|
};
|
2024-07-12 10:15:14 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.zsh.shellAliases = {
|
2024-10-21 12:31:30 +07:00
|
|
|
vpn-bareksa = "sudo ${pkgs.openvpn}/bin/openvpn --config ${
|
|
|
|
config.sops.secrets."bareksa/openvpn".path
|
|
|
|
}";
|
2024-07-12 10:15:14 +07:00
|
|
|
};
|
|
|
|
}
|