fixed wireguard and added ausweisapp

This commit is contained in:
Rouven Seifert 2023-01-16 16:55:17 +01:00
parent bdccec49f1
commit dd10deec8c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
4 changed files with 20 additions and 16 deletions

View file

@ -10,6 +10,7 @@
./modules/networks
./modules/lightdm
../../shared/vim.nix
../../shared/ausweisapp.nix
../../shared/input.nix
../../shared/sops.nix
../../shared/gpg.nix

View file

@ -99,20 +99,16 @@
};
networks."30-dorm" = {
matchConfig.Name = "dorm";
networkConfig = {
Address = "10.10.10.3/24";
DNS = "10.10.10.1";
DNSDefaultRoute = true;
};
linkConfig = {
ActivationPolicy = "manual"; #manual activation cause sometimes the endpoint can't be resolved
};
addresses = [
{
addressConfig = {
Address = "10.10.10.3/24";
RouteMetric = 30;
};
}
];
routes = [
# Somehow systemd-networkd always creates a route to 10.10.10.0/24 with metric 0 and regardless how I set it,
# my settings are ignored and set to 0. Route below would do it right, as soon as I find out how I can deacivate
# the metric 0 one, this will be uncommented
#{ routeConfig = { Gateway = "0.0.0.0"; Destination = "10.10.10.0/24"; Metric = 50; }; }
{ routeConfig = { Gateway = "0.0.0.0"; Destination = "192.168.10.0/24"; Metric = 50; }; }
{ routeConfig = { Gateway = "0.0.0.0"; Destination = "192.168.10.0/24"; Metric = 30; }; }
];
};
};