2022-07-18 21:08:09 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
networking.hostName = "radius";
|
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.interfaces.ens18.ipv4.addresses = [
|
|
|
|
{address = "10.42.10.5"; prefixLength = 24; }
|
|
|
|
];
|
|
|
|
networking.interfaces.ens18.ipv6.addresses = [
|
|
|
|
{address = "2a01:4f8:1c0c:8221::5"; prefixLength = 64; }
|
|
|
|
];
|
|
|
|
networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; };
|
|
|
|
networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "ens18"; };
|
|
|
|
|
2022-07-20 10:40:37 +02:00
|
|
|
services.prometheus.exporters.node = {
|
|
|
|
enable = true;
|
|
|
|
listenAddress = "10.42.10.5";
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
|
2022-07-20 18:23:18 +02:00
|
|
|
services.freeradius.enable = true;
|
|
|
|
users.users.radius.group = "radius";
|
|
|
|
users.groups.radius = {};
|
|
|
|
|
2022-07-18 21:08:09 +02:00
|
|
|
system.stateVersion = "22.05";
|
|
|
|
}
|