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 {
|
||||
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";
|
||||
};
|
||||
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
rec {
|
||||
hosts = {
|
||||
dhcp = {
|
||||
ip4 = "172.22.99.254";
|
||||
publicKey =
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPUrz1JqoyYm4zITHgUbhKCYV6wcE6qMcTjKSLAVlVyf";
|
||||
};
|
||||
grafana.publicKey =
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPFB9fo01jzr2upEBEXiR7sSmeQoq9ll5Cf5/hjq5e4Y";
|
||||
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
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue