40 lines
827 B
Nix
40 lines
827 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
profiles.clerie.network-fallback-dhcp.enable = true;
|
|
|
|
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
|
|
";
|
|
|
|
networking.useDHCP = false;
|
|
systemd.network.enable = true;
|
|
|
|
profiles.clerie.wg-clerie = {
|
|
enable = true;
|
|
ipv6s = [ "2a01:4f8:c0c:15f1::8108/128" ];
|
|
ipv4s = [ "10.20.30.108/32" ];
|
|
};
|
|
|
|
clerie.monitoring = {
|
|
enable = true;
|
|
id = "214";
|
|
pubkey = "I4xh3t6vIcNyntZkewXX56eWrEd3J0hhaYV45xj6uVU=";
|
|
serviceLevel = "event";
|
|
};
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|
|
|