🚀 add openvpn service
This commit is contained in:
parent
eb17617025
commit
eabb8bd1a7
5 changed files with 17 additions and 0 deletions
|
@ -18,5 +18,9 @@
|
|||
file = ../../secrets/spotifyd.age;
|
||||
owner = "1000";
|
||||
};
|
||||
homeVPN = {
|
||||
file = ../../secrets/home-vpn.age;
|
||||
owner = "1000";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
./jupyter.nix
|
||||
./kdeconnect.nix
|
||||
./keyring.nix
|
||||
./openvpn.nix
|
||||
./picom.nix
|
||||
];
|
||||
|
||||
|
|
11
modules/services/openvpn.nix
Normal file
11
modules/services/openvpn.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.openvpn.servers = {
|
||||
homeVPN = {
|
||||
config = "config /run/agenix/homeVPN ";
|
||||
autoStart = false;
|
||||
updateResolvConf = true;
|
||||
};
|
||||
};
|
||||
}
|
BIN
secrets/home-vpn.age
Normal file
BIN
secrets/home-vpn.age
Normal file
Binary file not shown.
|
@ -16,4 +16,5 @@ in {
|
|||
"spotifyd.age".publicKeys = users ++ hosts;
|
||||
"email-desktop.age".publicKeys = users ++ hosts;
|
||||
"email-laptop.age".publicKeys = users ++ hosts;
|
||||
"home-vpn.age".publicKeys = users ++ hosts;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue