diff --git a/hosts/radius/configuration.nix b/hosts/radius/configuration.nix index 36d6db3..b7fbc4b 100644 --- a/hosts/radius/configuration.nix +++ b/hosts/radius/configuration.nix @@ -27,10 +27,13 @@ with lib; }; services.freeradius.enable = true; + services.freeradius.debug = true; users.users.radius.group = "radius"; users.groups.radius = {}; networking.firewall.allowedUDPPorts = [ 1812 ]; + environment.systemPackages = [ pkgs.eapol_test ]; + system.stateVersion = "22.05"; } diff --git a/packages/default.nix b/packages/default.nix index ef12912..9148de1 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -17,4 +17,20 @@ self: super: { t38modem = self.callPackage ./t38modem.nix { }; ptlib = self.callPackage ./ptlib.nix { }; opal = self.callPackage ./opal.nix { }; + eapol_test = super.wpa_supplicant.overrideAttrs (old: rec { + name = "eapol_test-${old.version}"; + + buildPhase = '' + runHook preBuild + echo CONFIG_EAPOL_TEST=y >> .config + make eapol_test + runHook postBuild + ''; + + installPhase = '' + install -D eapol_test $out/bin/eapol_test + ''; + + NIX_CFLAGS_COMPILE = [ "-Wno-error" ]; + }); }