emmanuelrosa on Nostr: You can also create custom wrapper/decorator Nix functions to make packages behave ...
You can also create custom wrapper/decorator Nix functions to make packages behave differently. For example, I have a wrapper function which applies NVIDIA offload rendering. When I want a package to use offload rendering, I just wrap it in my configuration.nix.
Published at
2023-06-20 22:28:27Event JSON
{
"id": "cd33c0440074c7b2bdec7a16a35da8ce27e999969e82359e0b88b1eb449f3b1a",
"pubkey": "3e4931108333d95d025362e5adb33609be99d80fd66224b7402d4fe62c8ffa7b",
"created_at": 1687300107,
"kind": 1,
"tags": [
[
"e",
"7777d6309d9341cb50e475948b349a9b4bd7ec35743cc1c5a9f502e20fd3e4b0",
"",
"reply"
],
[
"p",
"f47d575f2c441f579acda9d032950f36c266961302e9e6c12c585f2c496724b2"
],
[
"r",
"configuration.nix."
]
],
"content": "You can also create custom wrapper/decorator Nix functions to make packages behave differently. For example, I have a wrapper function which applies NVIDIA offload rendering. When I want a package to use offload rendering, I just wrap it in my configuration.nix.",
"sig": "f1f4f6f9529e3dfe6392762e10c8d692d88f71daa147f9cbe732bd038cd9e5b1f98cf84b1d584b0ccd78ec457192ed3c7f013719fe49308a7f4922d46abc1231"
}