thinkpad: minor networking fixes

This commit is contained in:
Rouven Seifert 2024-04-10 00:33:33 +02:00
parent ea7971a6e5
commit 16a9362aba
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, config, lib, ... }:
{
imports = [ ./uni.nix ];
@ -26,6 +26,7 @@
curlFull
wireguard-tools
];
services.timesyncd.servers = lib.mkForce [ ];
services.resolved = {
fallbackDns = [
"9.9.9.9"
@ -56,11 +57,13 @@
"@DORM_SSID@" = {
psk = "@DORM_PSK@";
authProtocols = [ "SAE" ];
extraConfig = "disabled=1";
};
"@DORM5_SSID@" = {
priority = 5;
psk = "@DORM_PSK@";
authProtocols = [ "SAE" ];
extraConfig = "disabled=1";
};
"@PIXEL_SSID@" = {
psk = "@PIXEL_PSK@";
@ -134,7 +137,6 @@
};
# some wireguard interfaces
netdevs."30-wg0" = {
netdevConfig = {
Kind = "wireguard";
@ -159,13 +161,12 @@
};
networks."30-wg0" = {
matchConfig.Name = "wg0";
linkConfig.RequiredForOnline = "carrier";
linkConfig.RequiredForOnline = false;
networkConfig = {
Address = "192.168.43.3/32";
DNS = "192.168.43.1";
Domains = "~vpn.rfive.de ~43.168.192.in-addr.arpa";
DNSSEC = false;
BindCarrier = [ "wlp9s0" ];
};
};
};