Firstly I am a noob and I am brand new to linux and NixOs. It is my first distro. The company I work for has an applet that is run by Javaws and within the applet sometimes there is data to download on ones local pc. I need to be able to do that but currently I do not have write permission. Now on NixOs I use adoptopenjdk-icedtea-web to run the applet.
My configuration.nix looks like this
environment.systemPackages = with pkgs; [
jdk21
adoptopenjdk-icedtea-web
(adoptopenjdk-icedtea-web.override { jdk = openjdk21; })
…
Firstly I am trying to force IcedTea-web to use the latest openJDK.
Now, IcedTea-web give you the ability to manage the security policy, although that only changes the one installed in the normal place on other distros. The actual policy that gets used is in the nix store and you cannot change it. ALso I checked and I have 4 so I dont even know which one is being used.
/nix/store/njqi4hxzrqx6m406zdgqzvikf2q0bxld-openjdk-8u442-b06-jre/lib/openjdk/jre/lib/security/java.policy
/nix/store/apfsfj71yr4jfgw09cd79yf3kq95s5na-openjdk-8u442-b06/lib/openjdk/jre/lib/security/java.policy
/nix/store/lav9wifyfr8bw9g0n71gb3cilm2cmfsf-openjdk-minimal-jre-21.0.7+6/conf/security/java.policy
/nix/store/qagnl38l96xcbx17ll0v9zswhcl1nqw6-openjdk-21.0.7+6/lib/openjdk/conf/security/java.policy
How can I specify in Nix configuration to set permission to write for the applet so I can download stuff?