chore: maintain
This commit is contained in:
parent
2378a66114
commit
25482857d4
58 changed files with 1095 additions and 747 deletions
27
system/dev/dn-pre7780/network/openfortivpn.nix
Normal file
27
system/dev/dn-pre7780/network/openfortivpn.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) getExe;
|
||||
inherit (config.sops) secrets;
|
||||
in
|
||||
{
|
||||
sops.secrets = {
|
||||
"openfortivpn" = { };
|
||||
};
|
||||
|
||||
systemd.services.openfortivpn = {
|
||||
script = ''
|
||||
${getExe pkgs.openfortivpn} -c "$CREDENTIALS_DIRECTORY/config" --set-dns=1 --use-resolvconf=1
|
||||
'';
|
||||
serviceConfig = {
|
||||
Restart = "no";
|
||||
LoadCredential = [
|
||||
"config:${secrets."openfortivpn".path}"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue