!RRerllqmbATpmbJgCn:nixos.org

Nix / NixOS

3850 Members
Nix/NixOS user help channel | Latest NixOS: 24.05 (Uakari) | Ask your question here or on https://discourse.nixos.org | All NixOS rooms are moderated! Ask for help in #moderation:nixos.org660 Servers

Load older messages


SenderMessageTime
21 Oct 2024
@sliedes:hacklab.fiSami LiedesBut yes, I'm somehow tempted to try to come up with... some kind of a more structure-enforcing language that generates Nix, or something. I know there were some attempts at a typescript-style thing for Nix. I think there would be a lot of value in e.g. having packages obey a nice and introspectable interface as a promise. Perhaps one could be designed that could lead to having only sqrt(n) ways to override packages instead of the current n, and actually have all the wrong ways error instead of fail silently. Not that I have much hope that anyone would ever want to use it. But at least I think it could spur some discussions.22:35:08
@sliedes:hacklab.fiSami LiedesI have that on my list of things to do if there's an infinite afterlife where I can work on Nix.22:35:47
@sliedes:hacklab.fiSami Liedes
In reply to @sliedes:hacklab.fi
I have that on my list of things to do if there's an infinite afterlife where I can work on Nix.
Although, now that I think of it, I'm not sure it would even then be mathematically guaranteed I'd ever get to it given my current approach that seems more like a stack...
22:39:57
@oak:universumi.fioakI've been playing around with the idea in my head, what if the nixpkgs was implemented with some heavily typed functional programming language, such as Haskell. :D (Don't worry, I'm not going to start implement it)22:44:28
@sliedes:hacklab.fiSami LiedesYeah, me too. But I'm too honest and too little sane to give such reassuring promises.22:48:10
@oak:universumi.fioakThere's of course also GUIX, where they use Guile Scheme (which someone could call a "real" LISP-family functional programming language) instead of Nix, but I've never looked into it other than I've read through the webpages22:50:04
@sr.estegosaurio:matrix.orgSr. Estegosaurio

Uhg,

❯ vkcube
Selected GPU 0: NVIDIA GeForce RTX 3060 Laptop GPU (NVK GA106), type: DiscreteGpu
vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
Could not find both graphics and present queues

I'm on Wayland. I have no idea what to do.

22:50:34
@sr.estegosaurio:matrix.orgSr. EstegosaurioEverything I find talks about how to actually enable DRI3 on Xorg.22:50:51
@sr.estegosaurio:matrix.orgSr. Estegosaurio Running things like glxheads works but it's using the iGPU. 22:51:17
@sr.estegosaurio:matrix.orgSr. Estegosaurio

I get two warnings while executing vulkaninfo:

WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Received return code -3 from call to vkCreateInstance in ICD /nix/store/2pi1m52z6cipcb1kir09sw2zb6cvkp69-mesa-24.2.4-drivers/lib
/libvulkan_dzn.so. Skipping this driver.
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Received return code -3 from call to vkCreateInstance in ICD /nix/store/2pi1m52z6cipcb1kir09sw2zb6cvkp69-mesa-24.2.4-drivers/lib
/libvulkan_virtio.so. Skipping this driver.
22:52:22
@oak:universumi.fioakNVIDIA does not work well with Wayland (or this was the case at least still few months ago), you need to enable the experimental modesetting support which is not officially supported by NVIDIA22:52:42
@oak:universumi.fioakhttps://search.nixos.org/options?channel=24.05&show=hardware.nvidia.modesetting.enable22:52:51
@sr.estegosaurio:matrix.orgSr. EstegosaurioIsn't that setting exclusive to the propietary driver?22:53:05
@sr.estegosaurio:matrix.orgSr. EstegosaurioI had it enabled but rn I'm trying to get nouveau + NVK working.22:53:26
@oak:universumi.fioakAh I know nothing about using Nouveau drivers, the new cards probably won't work at all22:53:44
@kfears:matrix.orgKFears (tragedy arc)
In reply to @sliedes:hacklab.fi
But yes, I'm somehow tempted to try to come up with... some kind of a more structure-enforcing language that generates Nix, or something. I know there were some attempts at a typescript-style thing for Nix. I think there would be a lot of value in e.g. having packages obey a nice and introspectable interface as a promise. Perhaps one could be designed that could lead to having only sqrt(n) ways to override packages instead of the current n, and actually have all the wrong ways error instead of fail silently.

Not that I have much hope that anyone would ever want to use it. But at least I think it could spur some discussions.
Good luck!
22:54:25
@kfears:matrix.orgKFears (tragedy arc)I think there's a lot of research not done into NixLang but better22:54:42
@sr.estegosaurio:matrix.orgSr. Estegosaurio
In reply to @oak:universumi.fi
Ah I know nothing about using Nouveau drivers, the new cards probably won't work at all
I know nothing too since I've always used the propietary one but afaik now you could actually "use" it with newer GPUs.
22:54:51
@kfears:matrix.orgKFears (tragedy arc)Part of it, unfortunately, is due to how hard it is to replace NixLang even just from the technical side22:54:59
@oak:universumi.fioakNVIDIA also has their new proprietary open source driver, which I think has been the recommended one from NVIDIA for few versions now22:55:25
@oak:universumi.fioakFor that you still need to take the firmware binary blob from closed source drivers (nixpkgs does that automatically for you if you set open = true;)22:56:20
@sr.estegosaurio:matrix.orgSr. EstegosaurioYep.22:56:53
@oak:universumi.fioakbut somehow I have gotten this idea Nouveau works best on the 10 years old cards NVIDIA has already stopped supporting22:57:05
@sr.estegosaurio:matrix.orgSr. EstegosaurioI think that's still true.22:58:25
@sr.estegosaurio:matrix.orgSr. EstegosaurioBut then it became unusable for newer cards until recently.22:58:58
@sr.estegosaurio:matrix.orgSr. Estegosaurio I'm loosing so much sanity here that as soon as I made an up-to-date backup I'm going to try reinstalling. On a reproducible system using root-on-tmpfs. 23:01:12
@sr.estegosaurio:matrix.orgSr. EstegosaurioWhich should leave me exacly as I am right now.23:01:34
@sr.estegosaurio:matrix.orgSr. EstegosaurioBut I'm willing to try.23:01:41
@sr.estegosaurio:matrix.orgSr. Estegosaurio Well, vkcube-wayland is working AND using NVK. 23:03:18
@aftix:matrix.orgaftix I'm trying to run some wayland examples from rust (the examples in the winit crate). I'm getting an error that it can't find the system wayland libraries, but I'm running it from a nix-shell and pkg-config --list-all shows all the wayland libraries fine 23:07:41

Show newer messages


Back to Room ListRoom Version: 10