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