mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
thinkpad: minor networking fixes
This commit is contained in:
parent
ea7971a6e5
commit
16a9362aba
1 changed files with 5 additions and 4 deletions
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue