NixOS/home/modules/bareksa.nix

18 lines
315 B
Nix

{ pkgs, config, ... }:
let
sopsFile = ../../secrets/bareksa.yaml;
in
{
sops.secrets = {
"bareksa/openvpn" = {
inherit sopsFile;
};
};
programs.zsh.shellAliases = {
vpn-bareksa = "sudo ${pkgs.openvpn}/bin/openvpn --config ${
config.sops.secrets."bareksa/openvpn".path
}";
};
}