dhcp: remove

DHCP server is now on c3d2-gw3.c3d2.zentralwerk.dn42
This commit is contained in:
Astro 2021-06-16 20:01:38 +02:00
parent 2653f998dd
commit 5c6d357036
4 changed files with 1 additions and 64 deletions

View File

@ -65,11 +65,6 @@
in {
inherit (pkgs) bmxd;
dhcp-nixos-rebuild = mkDeploy {
name = "dhcp";
host = hostRegistry.hosts.dhcp.ip4;
};
glotzbert-nixos-rebuild = mkDeploy { name = "glotzbert"; };
glotzbert-wake = mkWake "glotzbert";
@ -143,15 +138,6 @@
});
in {
dhcp = nixosSystem' {
modules = [
./hosts/containers/dhcp
secrets.nixosModules.admins
secrets.nixosModules.dhcp
];
system = "x86_64-linux";
};
freifunk = nixosSystem' {
modules = [
./hosts/containers/freifunk
@ -175,7 +161,7 @@
};
pulsebert = nixosSystem' {
modules = [ ./hosts/pulsebert secrets.nixosModules.dhcp ];
modules = [ ./hosts/pulsebert ];
system = "aarch64-linux";
};

View File

@ -2,11 +2,6 @@
rec {
hosts = {
dhcp = {
ip4 = "172.22.99.254";
publicKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPUrz1JqoyYm4zITHgUbhKCYV6wcE6qMcTjKSLAVlVyf";
};
grafana.publicKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPFB9fo01jzr2upEBEXiR7sSmeQoq9ll5Cf5/hjq5e4Y";
ledstripes.publicKey =

View File

@ -1,32 +0,0 @@
{ config, pkgs, lib, hostRegistry, ... }:
{
imports = [ ../../../lib/lxc-container.nix ../../../lib/shared.nix ];
c3d2 = {
isInHq = true;
hq.interface = "eth0";
};
networking.hostName = "dhcp";
networking.defaultGateway = "172.22.99.1";
networking.interfaces.eth0 = {
ipv4.addresses = [{
address = hostRegistry.hosts.dhcp.ip4;
prefixLength = 24;
}];
useDHCP = lib.mkForce false;
};
# dhcp
networking.firewall.allowedUDPPorts = [ 67 68 ];
services.dhcpd4 = {
enable = true;
interfaces = [ config.c3d2.hq.interface ];
authoritative = true;
# the leases are defined in the secrets module imported
# at the top-level of this flake
};
}

View File

@ -1,18 +1,6 @@
{
network.description = "C3D2 HQ";
"dhcp" =
{ ... }:
{
imports = [
hosts/containers/dhcp/configuration.nix
];
deployment = {
targetHost = "2a00:8180:2c00:223:3801:15ff:fe95:8988";
storeKeysOnMachine = true;
};
};
"mucbot" =
{ ... }:
{