2025-08-01 02:06:04 +02:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
cfg = config.modules.services.work-proxy;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
options.modules.services.work-proxy = {
|
|
|
|
|
enable = lib.my.mkBoolOpt false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2025-08-05 14:58:34 +02:00
|
|
|
|
2025-08-01 02:06:04 +02:00
|
|
|
security.pki.certificateFiles = [
|
|
|
|
|
"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
|
|
|
|
./certs/Foyer-Group-Root-CA.crt
|
|
|
|
|
./certs/Foyer-Sub-CA.crt
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
environment.variables = {
|
|
|
|
|
JAVAX_NET_SSL_TRUSTSTORE = ./certs/cacerts;
|
2025-08-05 19:30:54 +02:00
|
|
|
JAVA_OPTS = "-Djavax.net.ssl.trustStore=${./certs/cacerts} -Djavax.net.ssl.trustStorePassword=changeit";
|
2025-08-01 02:06:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
home-manager.users.${config.user.name} = {
|
2025-08-05 14:58:34 +02:00
|
|
|
home = {
|
|
|
|
|
file.".sbt/repositories".text = ''
|
|
|
|
|
[repositories]
|
|
|
|
|
local
|
|
|
|
|
maven-local
|
|
|
|
|
nexus-maven: https://nexus.foyer.lu/repository/mvn-all/
|
|
|
|
|
nexus-ivy: https://nexus.foyer.lu/repository/ivy-all/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
|
|
|
|
|
nexus-ivy-sbt: https://nexus.foyer.lu/repository/ivy-all/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[artifact](-[classifier])-[type].[ext]
|
|
|
|
|
'';
|
|
|
|
|
};
|
2025-08-01 02:06:04 +02:00
|
|
|
};
|
|
|
|
|
|
2025-08-03 04:02:00 +02:00
|
|
|
environment.systemPackages = with pkgs; [ chisel ];
|
2025-08-01 02:06:04 +02:00
|
|
|
};
|
|
|
|
|
}
|