infrastructure/machines/liminix/ap-v01/_configuration.nix
sinavir 11391dc4f2
Some checks failed
Check meta / check_dns (pull_request) Successful in 16s
Check meta / check_meta (pull_request) Successful in 16s
Build all the nodes / ap01 (pull_request) Failing after 18s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Check workflows / check_workflows (pull_request) Failing after 29s
Run pre-commit on all files / pre-commit (push) Successful in 41s
Build the shell / build-shell (pull_request) Successful in 37s
Run pre-commit on all files / pre-commit (pull_request) Successful in 38s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m42s
Build all the nodes / rescue01 (pull_request) Successful in 1m47s
Build all the nodes / geo01 (pull_request) Successful in 2m31s
Build all the nodes / hypervisor02 (pull_request) Successful in 2m43s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m47s
Build all the nodes / build01 (pull_request) Successful in 2m51s
Build all the nodes / bridge01 (pull_request) Successful in 2m54s
Build all the nodes / geo02 (pull_request) Successful in 3m4s
Build all the nodes / web01 (pull_request) Successful in 2m50s
Build all the nodes / vault01 (pull_request) Successful in 2m53s
Build all the nodes / storage01 (pull_request) Successful in 3m11s
Build all the nodes / web02 (pull_request) Successful in 3m1s
Build all the nodes / web03 (pull_request) Successful in 3m3s
Build all the nodes / compute01 (pull_request) Successful in 3m31s
Build all the nodes / tower01 (pull_request) Successful in 4m14s
feat(ap-v01): Add usteer
2025-02-10 09:44:44 +01:00

48 lines
1.2 KiB
Nix

# SPDX-FileCopyrightText: 2024 Ryan Lahfa <ryan.lahfa@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{
modulesPath,
sourcePkgs,
name,
...
}:
{
imports = [
"${modulesPath}/wlan.nix"
"${modulesPath}/network"
"${modulesPath}/hostapd"
"${modulesPath}/usteer"
"${modulesPath}/ssh"
"${modulesPath}/ntp"
"${modulesPath}/vlan"
"${modulesPath}/bridge"
"${modulesPath}/jitter-rng"
"${modulesPath}/pki"
"${modulesPath}/ubus"
# System-level configuration
./system.nix
# Configures our own WLAN.
./wlan.nix
# Configures our LAN interfaces, e.g. bridge + VLANs.
./lan.nix
# Configures our IPv4/IPv6 addresses, e.g. DHCPv4 on VLAN 0, SLAAC on VLAN 3001.
./addresses.nix
# Configures a basic local DNS.
./dns.nix
# Add ubus daemon
./ipc.nix
# Configures our management layer, e.g. SSH server + DGNum FAI keys.
./management.nix
# Configures our recovery system, e.g. a levitation script.
./recovery.nix
# Metadata on the system for field recovery.
./metadata.nix
# TODO: god that's so a fucking hack.
(import "${modulesPath}/../devices/zyxel-nwa50ax").module
];
hostname = name;
nixpkgs.source = sourcePkgs.path;
}