dhcp: remove
DHCP server is now on c3d2-gw3.c3d2.zentralwerk.dn42
This commit is contained in:
parent
2653f998dd
commit
5c6d357036
16
flake.nix
16
flake.nix
|
@ -65,11 +65,6 @@
|
||||||
in {
|
in {
|
||||||
inherit (pkgs) bmxd;
|
inherit (pkgs) bmxd;
|
||||||
|
|
||||||
dhcp-nixos-rebuild = mkDeploy {
|
|
||||||
name = "dhcp";
|
|
||||||
host = hostRegistry.hosts.dhcp.ip4;
|
|
||||||
};
|
|
||||||
|
|
||||||
glotzbert-nixos-rebuild = mkDeploy { name = "glotzbert"; };
|
glotzbert-nixos-rebuild = mkDeploy { name = "glotzbert"; };
|
||||||
glotzbert-wake = mkWake "glotzbert";
|
glotzbert-wake = mkWake "glotzbert";
|
||||||
|
|
||||||
|
@ -143,15 +138,6 @@
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
|
|
||||||
dhcp = nixosSystem' {
|
|
||||||
modules = [
|
|
||||||
./hosts/containers/dhcp
|
|
||||||
secrets.nixosModules.admins
|
|
||||||
secrets.nixosModules.dhcp
|
|
||||||
];
|
|
||||||
system = "x86_64-linux";
|
|
||||||
};
|
|
||||||
|
|
||||||
freifunk = nixosSystem' {
|
freifunk = nixosSystem' {
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/containers/freifunk
|
./hosts/containers/freifunk
|
||||||
|
@ -175,7 +161,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
pulsebert = nixosSystem' {
|
pulsebert = nixosSystem' {
|
||||||
modules = [ ./hosts/pulsebert secrets.nixosModules.dhcp ];
|
modules = [ ./hosts/pulsebert ];
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,6 @@
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
hosts = {
|
hosts = {
|
||||||
dhcp = {
|
|
||||||
ip4 = "172.22.99.254";
|
|
||||||
publicKey =
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPUrz1JqoyYm4zITHgUbhKCYV6wcE6qMcTjKSLAVlVyf";
|
|
||||||
};
|
|
||||||
grafana.publicKey =
|
grafana.publicKey =
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPFB9fo01jzr2upEBEXiR7sSmeQoq9ll5Cf5/hjq5e4Y";
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPFB9fo01jzr2upEBEXiR7sSmeQoq9ll5Cf5/hjq5e4Y";
|
||||||
ledstripes.publicKey =
|
ledstripes.publicKey =
|
||||||
|
|
|
@ -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
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
12
hq.nixops
12
hq.nixops
|
@ -1,18 +1,6 @@
|
||||||
{
|
{
|
||||||
network.description = "C3D2 HQ";
|
network.description = "C3D2 HQ";
|
||||||
|
|
||||||
"dhcp" =
|
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
hosts/containers/dhcp/configuration.nix
|
|
||||||
];
|
|
||||||
deployment = {
|
|
||||||
targetHost = "2a00:8180:2c00:223:3801:15ff:fe95:8988";
|
|
||||||
storeKeysOnMachine = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"mucbot" =
|
"mucbot" =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue