<abathur>
idk how healthy the dart ecosystem is and whether buildDartPackage is a meaningful add for nixpkgs, but I was searching for the reference sass implementation in dart and stumbled on an attempt to add it in #92814 that seems to maybe need a little sunlight?
<flokli>
maybe open a PR for discussion, with a commit message explaining what this is about.
plumm has joined #nixos-dev
<das_j>
flokli: No, it was a random hack I produced and idc if anyone ever needs this in upstream
<das_j>
s/idc/idk/
<flokli>
Hmmh
<das_j>
I don't think anyone else would ever need to add overrides to the unit file, but who knows, maybe someone might need this abomination in the future
<das_j>
One thing I found I could use it for was: restartTriggers = mkIf config.apparmor.restart [ toplevelConfig.systemd.units."${name}.service".unit.passthru.apparmor ];
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos-dev
mcint has quit [Quit: just do it!!!]
<p01ar>
hello!!
<p01ar>
ill reply to pr in sec im not being rude im eating :*
mcint has joined #nixos-dev
AlwaysLivid has quit [Remote host closed the connection]
AlwaysLivid has joined #nixos-dev
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-dev
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-dev
rajivr has quit [Quit: Connection closed for inactivity]
NinjaTrappeur has quit [Ping timeout: 260 seconds]
NinjaTrappeur has joined #nixos-dev
plumm has joined #nixos-dev
justan0theruser has quit [Ping timeout: 245 seconds]
rj has quit [Ping timeout: 240 seconds]
supersandro2000 has quit [Quit: Ping timeout (120 seconds)]
supersandro2000 has joined #nixos-dev
rj has joined #nixos-dev
orivej has joined #nixos-dev
NinjaTrappeur has quit [Quit: WeeChat 3.1]
NinjaTrappeur has joined #nixos-dev
tomberek has quit [Ping timeout: 240 seconds]
NinjaTrappeur has quit [Ping timeout: 246 seconds]
NinjaTrappeur has joined #nixos-dev
teto has quit [Quit: WeeChat 3.1]
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos-dev
Cale has quit [Remote host closed the connection]
Cale has joined #nixos-dev
<flokli>
das_j: so we need the ability to configure overrides even though the main unit isn't part of the nixos evaluation
<das_j>
flokli: So you mean the unit came from systemd.packages?
<flokli>
as in "dear nixos module system, the .service file isn't there yet, but it'll be, pinkie promise, just put all config in the .service.d folder
<flokli>
no
<flokli>
the unit file is created at runtime and placed in /run
<flokli>
as can be seen in the systemd-makefs generators
<symphorien[m]>
random idea: could we patch libglvnd so that if it fails to find the driver, and if /etc/NIXOS does not exists, it instructs people that libgl does not work on non nixos except if they use guibou/nixgl ?
<das_j>
flokli: Oof
<das_j>
You might have the wrong idea of what I mean with "override". I don't mean a random.service.d thing but rather a ${random.service}.overrideAttrs where I override the attributes of the runCommand that generates the service file
<das_j>
That's not related in any way I think
rj has quit [Ping timeout: 240 seconds]
<flokli>
symphorien[m]: Theoretically, there's nothing preventing us from making libglvnd behave like NixGL when it detects non NixOS, no?
<flokli>
as in, load graphics drivers from the distro if it's not NixOS and pray it works?
<symphorien[m]>
I think nixGL does not work like this
<symphorien[m]>
you have to choose yourself depending on your hardware: loading libgl from mesa (for intel) or loading the right version of the nvidia driver from nixpkgs
<symphorien[m]>
so the .so files of the foreign distro are not loaded
<flokli>
ah true
<flokli>
it prepends LD_LIBRARY_PATH with whatever graphics card driver you set
<flokli>
but from /some/ nixpkgs evaluation
<symphorien[m]>
yes, iirc
<flokli>
not necessarily binary compatible with the binary you run either
<flokli>
soo
<flokli>
in theory we could also just use another graphics card driver libgl that might also not be binary compatible
<flokli>
and distros conveniently seem to ship these somewhere ;-)
<symphorien[m]>
hehe I see what you want to do
rj has joined #nixos-dev
<flokli>
I think that should make running nix-build OpenGL stuff on non-NixOS somewhat more ergonomic
<symphorien[m]>
well that would amount to add /lib/whatever just after /run/opengl-driver in the runpath, right ?
<flokli>
well, /only/ if you detect you're not running on NixOS
<symphorien[m]>
but on NixOS, /lib does not exist ?
<symphorien[m]>
(and if you create it, well, expect breakage)
<flokli>
how do other distros handle this? (/usr)/lib just contains symlinks to whatever graphic card driver is installed?
* flokli
forgot all his tribal ubuntu knowledge
<symphorien[m]>
I think I only became aware of how this works on nixos...
* flokli
tries to spawn guibou
<samueldr>
I don't know if my memories are right, but package for different libGL vendors conflict maybe?
<samueldr>
but that was maybe from before libglvnd existed?
<samueldr>
probably not before, looking at the earlier commit dates