mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
networking: beautify
This commit is contained in:
parent
71c7cf31d2
commit
7bc9e06788
3 changed files with 17 additions and 3 deletions
|
@ -87,8 +87,15 @@
|
|||
};
|
||||
networks."30-dorm" = {
|
||||
matchConfig.Name = "wg0";
|
||||
addresses = [
|
||||
{
|
||||
addressConfig = {
|
||||
Address = "192.168.43.4/24";
|
||||
AddPrefixRoute = false;
|
||||
};
|
||||
}
|
||||
];
|
||||
networkConfig = {
|
||||
Address = "192.168.43.4/32";
|
||||
DNS = "192.168.43.1";
|
||||
Domains = [
|
||||
"~vpn.rfive.de"
|
||||
|
|
|
@ -163,8 +163,15 @@
|
|||
networks."30-wg0" = {
|
||||
matchConfig.Name = "wg0";
|
||||
linkConfig.RequiredForOnline = false;
|
||||
addresses = [
|
||||
{
|
||||
addressConfig = {
|
||||
Address = "192.168.43.3/24";
|
||||
AddPrefixRoute = false;
|
||||
};
|
||||
}
|
||||
];
|
||||
networkConfig = {
|
||||
Address = "192.168.43.3/32";
|
||||
DNS = "192.168.43.1";
|
||||
Domains = [
|
||||
"~vpn.rfive.de"
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
systemd.services = {
|
||||
openfortivpn-agdsn = {
|
||||
description = "AG DSN Fortinet VPN";
|
||||
script = "${pkgs.openfortivpn}/bin/openfortivpn vpn.agdsn.de:443 --realm admin-vpn -u r5 -p $(cat $CREDENTIALS_DIRECTORY/password) --trusted-cert bbbe0df79764c5f1bd4b332e449e43a40e43eec57c983a1e75a1896e6eae4da5";
|
||||
script = "${pkgs.openfortivpn}/bin/openfortivpn vpn.agdsn.de:443 --realm admin-vpn -u r5 -p $(cat $CREDENTIALS_DIRECTORY/password)";
|
||||
requires = [ "network-online.target" ];
|
||||
after = [ "network.target" "network-online.target" ];
|
||||
serviceConfig = {
|
||||
|
|
Loading…
Reference in a new issue