feat: add webis module
This commit is contained in:
parent
420b5d5d10
commit
57f2094c44
6 changed files with 34 additions and 2 deletions
28
modules/profiles/webis.nix
Normal file
28
modules/profiles/webis.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.my.profiles.webis;
|
||||
in
|
||||
|
||||
{
|
||||
options.my.profiles.webis.enable = mkEnableOption "webis profile";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
my.programs.ssh.includeSecrets = [ ../../secrets/webis-ssh.age ];
|
||||
age.secrets.webis = {
|
||||
file = ../../secrets/webis.age;
|
||||
name = "webis.ovpn";
|
||||
};
|
||||
services.openvpn.servers = {
|
||||
webis = {
|
||||
config = "config /run/agenix/webis.ovpn";
|
||||
autoStart = false;
|
||||
updateResolvConf = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue