!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

129 Members
28 Servers

Load older messages


SenderMessageTime
19 Jul 2025
@emilazy:matrix.orgemily* systemd can do all the bwrap sandboxing stuff itself20:33:40
@vog:matrix.orgvogIt's not just about hardening. It's about providing lightweight containers.20:34:02
@vog:matrix.orgvogSo I need process supervision inside the sandbox, not outside.20:34:43
@emilazy:matrix.orgemilyright, NixOS modules are quite bad about being unnecessarily singleton20:35:00
@vog:matrix.orgvogThe s6 tool do perform this job perfectly.20:35:03
@emilazy:matrix.orgemilywe do have NixOS containers for that, but they are moderately heavyweight20:35:18
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @emilazy:matrix.org
right, NixOS modules are quite bad about being unnecessarily singleton
Entire reason behind nix-minecraft lmao
20:35:30
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Being able to host Exactly One minecraft server sucks20:35:54
@vog:matrix.orgvogOk, but back to you original quesion: No, I don't neet a module configuration, just a pkgs configuration. But why were you asking?20:36:28
@emilazy:matrix.orgemilyunfortunately the module system is kind of bad (my hot take)20:36:33
@emilazy:matrix.orgemily(but the things we do with the module system are nice)20:36:47
@emilazy:matrix.orgemilydo wish we had something that didn't make singletons the happy path20:37:02
@emilazy:matrix.orgemilybecause manual containerization sucks20:37:10
@vog:matrix.orgvogOk, so I'm now back where I started. Many alternatives, but none of which appears interesting of even feasible to me. So I'd like to add junixsocket.20:39:36
@vog:matrix.orgvogCrazy idea: What if we make junixsocket, perhaps just the two parts "junixsocket-common" and "junixsocket-native-common", a dependency on postgresql_jdbc? That way, every Nix package that uses pkgs.postgresql_jdbc would automatically have support for unix sockets.20:41:12
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Not particularly crazy, a lot of packages do stuff like that, only skipping it if the optional dependency os extremely heavy20:41:57
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️* Not particularly crazy, a lot of packages do stuff like that, only skipping it if the optional dependency is extremely heavy20:42:15
@vog:matrix.orgvogSo would it make sense if I propose a pull request for exactly that? Or would that be doomed to be rejected? (In which case I'd work on a less intrusive solution instead)20:43:03
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Most PRs are usually doomed to inactivity instead of rejection20:43:37
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️This change makes perfect sense to me so I say go for it20:44:00
@vog:matrix.orgvogI'm a bit confused about java package conventions, though. So continuing my list of questions:21:32:58
@vog:matrix.orgvog
  1. Java libraries are not meant to be added to javaPackages, at least libraries like postgresql_jdbc and jogl are not. Is this intentional, or a bug?
21:33:42
@vog:matrix.orgvog 3 .Java libraries are put into by-name/.../, contrary to what is usual in other languages within Nix (e.g. ocamlPackages, etc.). Should I follow that convention? 21:34:59
@vog:matrix.orgvog *
  1. Java libraries are put into by-name/.../, contrary to what is usual in other languages within Nix (e.g. ocamlPackages, etc.). Should I follow that convention?
21:35:09
@vog:matrix.orgvog
  1. If a package provides github binary release tarballs, should I prefer those, or should I prefer fetchMavenArtifact?
21:46:34
@vog:matrix.orgvog *
  1. Java libraries are not meant to be added to javaPackages, at least libraries like postgresql_jdbc and jogl are not. Is this intentional, or a bug?
21:47:17
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @vog:matrix.org
  1. Java libraries are put into by-name/.../, contrary to what is usual in other languages within Nix (e.g. ocamlPackages, etc.). Should I follow that convention?
Java libraries are a bit different because they aren't notably intertwined with each other, while languages like ocaml and python have a very intertwined library ecosystem
21:55:35
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Java libraries are treated by and large like normal packages both in Nix and elsewhere21:55:59
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @vog:matrix.org
  1. Java libraries are not meant to be added to javaPackages, at least libraries like postgresql_jdbc and jogl are not. Is this intentional, or a bug?
As far as I can tell javaPackages only has openjfx nowadays, and that will likely be moved out later on when separated from the jdk itself
21:57:58
@msgilligan:matrix.orgmsgilliganI was just curious and thought it might be good to have some context.22:55:05

Show newer messages


Back to Room ListRoom Version: 6