NixOS/home/modules/bareksa.nix

16 lines
303 B
Nix
Raw Normal View History

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