chore: add vm-simple-network to all eligible machines

This commit is contained in:
Luj 2024-08-14 22:21:07 +02:00
parent b8db804e38
commit b096882d4a
Signed by: luj
GPG key ID: 6FC74C847011FD83
4 changed files with 13 additions and 45 deletions

View file

@ -3,6 +3,7 @@
pkgs,
lib,
inputs,
profiles,
...
}:
@ -16,6 +17,7 @@
arch = "x86_64-linux";
nixpkgs_version = inputs.nixpkgs;
hm_version = inputs.home-manager;
profiles = with profiles; [ vm-simple-network ];
ips = {
public.ipv4 = "82.67.34.230";
local.ipv4 = "192.168.0.175";
@ -31,19 +33,6 @@
deployment.tags = [ "server" ];
systemd.network.enable = true;
systemd.network.networks."10-wan" = {
matchConfig.Name = "ens18";
networkConfig = {
# start a DHCP Client for IPv4 Addressing/Routing
DHCP = "ipv4";
# accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC)
IPv6AcceptRA = true;
};
# make routing on this interface a dependency for network-online.target
linkConfig.RequiredForOnline = "routable";
};
services.openssh.enable = true;
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;