mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
networking: Unify underlay config across hosts
This commit is contained in:
parent
1d1709e1ba
commit
27b5c57023
19 changed files with 240 additions and 258 deletions
|
|
@ -24,15 +24,19 @@
|
|||
de.hyprland.enable = true;
|
||||
|
||||
networking = {
|
||||
overlay.address = "10.254.250.3";
|
||||
underlay.interface = "wlan0";
|
||||
isClient = true;
|
||||
overlay = {
|
||||
address = "10.254.250.3";
|
||||
role = "client";
|
||||
};
|
||||
underlay = {
|
||||
interface = "wlan0";
|
||||
useDhcp = true;
|
||||
wireless.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
resolved.enable = true;
|
||||
auto-gc.enable = true;
|
||||
wlan.enable = true;
|
||||
bluetooth.enable = true;
|
||||
sound.enable = true;
|
||||
nebula.enable = true;
|
||||
|
|
|
|||
|
|
@ -40,17 +40,4 @@
|
|||
HibernateDelaySec=2h
|
||||
HibernateOnACPower=yes
|
||||
'';
|
||||
|
||||
networking.useNetworkd = true;
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."10-wlan0" = {
|
||||
matchConfig.Name = "wlan0";
|
||||
linkConfig.RequiredForOnline = "routable";
|
||||
networkConfig = {
|
||||
DHCP = "yes";
|
||||
IgnoreCarrierLoss = "3s";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue