meow
This commit is contained in:
parent
37fdae42d2
commit
9ef6e78e2d
2 changed files with 25 additions and 19 deletions
24
hosts/picard/ts-ovpn.nix
Normal file
24
hosts/picard/ts-ovpn.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, options, ... }: {
|
||||
imports = [
|
||||
../../nixos-modules/services/tailscale-openvpn.nix
|
||||
../../nixos-modules/system/agenix.nix
|
||||
];
|
||||
ragon = {
|
||||
agenix.secrets."ovpnNl" = { };
|
||||
agenix.secrets."ovpnDe" = { };
|
||||
agenix.secrets."ovpnTu" = { };
|
||||
agenix.secrets."ovpnCrt1" = { };
|
||||
agenix.secrets."ovpnPw1" = { };
|
||||
agenix.secrets."ovpnPw2" = { };
|
||||
agenix.secrets."tailscaleKey" = { };
|
||||
services.tailscale-openvpn = {
|
||||
enable = true;
|
||||
tsAuthKey = config.age.secrets.tailscaleKey.path;
|
||||
config = {
|
||||
nl = config.age.secrets.ovpnNl.path;
|
||||
de = config.age.secrets.ovpnDe.path;
|
||||
tu = config.age.secrets.ovpnTu.path;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue