mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
chore: moved wireguard config
This commit is contained in:
parent
e98394d757
commit
ce8f7cc03d
3 changed files with 27 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
Bridge = "br-vms";
|
Bridge = "br-vms";
|
||||||
ConfigureWithoutCarrier = true;
|
ConfigureWithoutCarrier = true;
|
||||||
|
KeepConfiguration = "yes";
|
||||||
};
|
};
|
||||||
linkConfig = {
|
linkConfig = {
|
||||||
RequiredForOnline = false;
|
RequiredForOnline = false;
|
||||||
|
|
@ -37,6 +38,7 @@
|
||||||
matchConfig.Name = "br-vms";
|
matchConfig.Name = "br-vms";
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
DHCP = "ipv4";
|
DHCP = "ipv4";
|
||||||
|
KeepConfiguration = "yes";
|
||||||
};
|
};
|
||||||
linkConfig = {
|
linkConfig = {
|
||||||
RequiredForOnline = "routable";
|
RequiredForOnline = "routable";
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,31 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Remote rebuild safeguards:
|
||||||
|
# These settings prevent network services from restarting during nixos-rebuild,
|
||||||
|
# which would otherwise drop SSH connections when done remotely.
|
||||||
|
# The bridge configuration changes enp10s0, so we need to prevent systemd-networkd
|
||||||
|
# and NetworkManager from restarting to maintain connectivity.
|
||||||
|
|
||||||
|
# Prevent SSH connections from being killed during network reconfiguration
|
||||||
|
systemd.services.sshd = {
|
||||||
|
stopIfChanged = false;
|
||||||
|
reloadIfChanged = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Prevent systemd-networkd from restarting during switches to avoid dropping SSH
|
||||||
|
systemd.services.systemd-networkd = {
|
||||||
|
stopIfChanged = false;
|
||||||
|
restartTriggers = lib.mkForce [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Prevent NetworkManager from restarting during config changes
|
||||||
|
systemd.services.NetworkManager = {
|
||||||
|
stopIfChanged = false;
|
||||||
|
reloadIfChanged = true;
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
avahi = {
|
avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
0
systems/ceres/config/wireguard.nix
Normal file → Executable file
0
systems/ceres/config/wireguard.nix
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue