Jdk18.nix pkgs loading through Zabbix server

Overriding the jdk8 certificate store is possible by overriding the cacert parameter of the package: jdf8.nix

Using container compilatory to compile the inventrory. Low-level customizing on
Zabbix engine.


{ pkgs, ... }:
let 
  myjdk = pkgs.jdk8.override {
    cacert = pkgs.runCommand "mycacert" {} ''
      mkdir -p $out/etc/ssl/certs
      cat ${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt \
        ${./my-company-root-certificate.crt} > $out/etc/ssl/certs/ca-bundle.crt
    '';
  };
in {
  programs.java = {
    enable = true;
    package = myjdk
  ;
  }

Links:

java.nogue.io
java.oracle.io
java.nix.wiki

1 Like