feat(machines/ap01/recovery): fix levitation dependencies
All checks were successful
Run pre-commit on all files / check (push) Successful in 25s
Check meta / check_meta (pull_request) Successful in 19s
Check meta / check_dns (pull_request) Successful in 19s
Check workflows / check_workflows (pull_request) Successful in 26s
Build all the nodes / ap01 (pull_request) Successful in 1m42s
Build all the nodes / bridge01 (pull_request) Successful in 1m42s
Build all the nodes / geo01 (pull_request) Successful in 1m45s
Build all the nodes / geo02 (pull_request) Successful in 1m43s
Build all the nodes / compute01 (pull_request) Successful in 2m11s
Build all the nodes / rescue01 (pull_request) Successful in 1m56s
Build all the nodes / vault01 (pull_request) Successful in 1m53s
Build all the nodes / storage01 (pull_request) Successful in 2m0s
Run pre-commit on all files / check (pull_request) Successful in 26s
Build all the nodes / web01 (pull_request) Successful in 2m16s
Build all the nodes / web02 (pull_request) Successful in 1m38s
Build all the nodes / web03 (pull_request) Successful in 1m30s

We should use the right DHCPv4.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
Ryan Lahfa 2024-12-08 23:18:28 +01:00
parent ccd89b070c
commit da318b17aa

View file

@ -6,6 +6,7 @@
}:
let
svc = config.system.service;
parentConfig = config;
in
{
defaultProfile.packages = with pkgs; [
@ -19,22 +20,27 @@ in
"${modulesPath}/kernel"
"${modulesPath}/outputs/tftpboot.nix"
"${modulesPath}/outputs.nix"
];
nixpkgs.buildPlatform = builtins.currentSystem;
(
{ config, ... }:
{
services = {
# In this situation, we fallback to the appro VLAN.
# TODO: add support for the admin VLAN.
# Simplest DHCPv4 we can find.
dhcpv4 = svc.network.dhcp.client.build {
interface = config.hardware.networkInterfaces.lan;
interface = parentConfig.hardware.networkInterfaces.lan;
};
inherit (config.services) sshd;
inherit (parentConfig.services) sshd;
defaultroute4 = svc.network.route.build {
via = "$(output ${config.services.dhcpv4} router)";
target = "default";
dependencies = [ config.services.dhcpv4 ];
};
};
}
)
];
nixpkgs.buildPlatform = builtins.currentSystem;
defaultProfile.packages = [ mtdutils ];
# Only keep root, which should inherit from DGN access control's root permissions.