1
0
Fork 0

add eapol_test to radius

This commit is contained in:
Ember 'n0emis' Keske 2022-07-25 15:29:16 +02:00
parent dce2d5483d
commit 1e5722812d
No known key found for this signature in database
GPG Key ID: 00FAF748B777CF10
2 changed files with 19 additions and 0 deletions

View File

@ -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";
}

View File

@ -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" ];
});
}