infrastructure/machines/liminix/ap-test/management.nix
Elias Coppens c4782f15c5
All checks were successful
Run pre-commit on all files / pre-commit (push) Successful in 22s
Run pre-commit on all files / pre-commit (pull_request) Successful in 23s
feat: add test AP
Signed-off-by: Elias Coppens <elias@dgnum.eu>
2025-03-01 16:00:40 +01:00

20 lines
609 B
Nix

# SPDX-FileCopyrightText: 2024 Ryan Lahfa <ryan.lahfa@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ config, ... }:
let
svc = config.system.service;
in
{
# SSH keys are handled by the access control module.
dgn-access-control.enable = true;
users.root = {
# TODO: Change this well-known password
passwd = "$6$Z2MiaMXkpUJRPl2/$fxVE3iD/n208CISM2F6OnWj0Qq0QG2tTQqLCjU80PFJJGIwNLLyOp6SeYH3dH20OvJX1loZRETrThZfIPw.rb/";
};
services.sshd = svc.ssh.build { allowRoot = true; };
services.openwrt-prometheus-exporter = svc.openwrt-prometheus-exporter.build {
httpPorts = [ 9100 ];
};
}