2022-12-28 00:39:35 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
2023-06-20 18:58:55 +02:00
|
|
|
|
|
|
|
./fieldpoc.nix
|
2022-12-28 00:39:35 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.kernelParams = [ "console=ttyS0,115200n8" ];
|
|
|
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
boot.loader.grub.extraConfig = "
|
|
|
|
serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
|
|
|
|
terminal_input serial
|
|
|
|
terminal_output serial
|
|
|
|
";
|
|
|
|
|
2023-09-15 20:24:25 +02:00
|
|
|
services.wg-clerie = {
|
2022-12-28 01:25:12 +01:00
|
|
|
enable = true;
|
2023-09-15 20:24:25 +02:00
|
|
|
ipv6s = [ "2a01:4f8:c0c:15f1::8106/128" ];
|
|
|
|
ipv4s = [ "10.20.30.106/32" ];
|
|
|
|
privateKeyFile = "/var/src/secrets/wireguard/wg-clerie";
|
2022-12-28 01:25:12 +01:00
|
|
|
};
|
|
|
|
|
2022-12-28 00:39:35 +01:00
|
|
|
clerie.monitoring = {
|
|
|
|
enable = true;
|
|
|
|
id = "212";
|
|
|
|
pubkey = "P1ONelxezvkcLJFyvuCVeIUd3uewPIlONfKk9y6h9QE=";
|
2023-01-05 23:16:50 +01:00
|
|
|
serviceLevel = "event";
|
2023-05-06 16:11:49 +02:00
|
|
|
privateKeyFile = "/var/src/secrets/wireguard/wg-monitoring";
|
2022-12-28 00:39:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|