!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

206 Members
59 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
12 Sep 2023
@vid:matrix.org@vid:matrix.orgone inflection might be this channel is for very NixOS specific development, whereas I'm talking about relating it to a general experience where if you have node/npm (or their equivalents) you're up for anything. NixOS specific development could be using a nix file instead of package.json, or nix specific directives, etc.12:07:33
@lily:lily.flowersLily FosterI don't think we actually even have a topic technically set, so 🤷‍♀️12:08:05
@lily:lily.flowersLily FosterI'm fine with general node.js discussion on nix/nixpkgs/nixos here tbh. Not like it gets much activity anyway12:09:05
@lily:lily.flowersLily Foster(I just don't have playwright- or node-specific answers for you on this particular problem. Someone else might though)12:10:17
@vid:matrix.org@vid:matrix.org I could point you at a repo if you're really bored / curious.
clone https://github.com/withhaibun/haibun-e2e-tests
then npm i; npm run build; npm run test counter
12:14:27
@vid:matrix.org@vid:matrix.orgI had to keep going so I created an ubuntu vm, but it's … not ideal12:16:12
@lily:lily.flowersLily FosterYeah the best we have for running arbitrary prebuilt files on nixos without modification is (the incredibly hacky) nix-ld + envfs + something like nix-alien or (the slightly less incredibly hacky) steam-run. If the latter broke though you could open a nixpkgs issue to get it fixed12:26:16
@lily:lily.flowersLily Foster Or you could just run it in a container and use podman in your personal build commands 12:26:41
@lily:lily.flowersLily FosterOr nixify the project 😈12:26:53
@vid:matrix.org@vid:matrix.orgI thought about using containers that but I want to be focused on general DX. already have people on mac &c using it. I mean I know why you're saying it but nixos is basically the odd one out here, creating the problem, even if it's ultimately a better way12:28:21
@vid:matrix.org@vid:matrix.org * I thought about using containers but I want to be focused on general DX. already have people on mac &c using it. I mean I know why you're saying it but nixos is basically the odd one out here, creating the problem, even if it's ultimately a better way12:29:01
@lily:lily.flowersLily FosterFeel free to work on or look for more/better nixos solutions here, I'm just saying I don't know anything better while still using nixos12:29:40
@lily:lily.flowersLily FosterYou could use direnv or something too to set up the environment automatically on your system without having to change it system-wide or change upstream stuff12:30:34
@lily:lily.flowersLily Foster(Fwiw I do use nix-ld, envfs, nix-alien, and direnv all to some degree specifically for dealing with devving on random repos occasionally. I often find myself just writing a quick shell.nix for a repo that handles env setup and satisfying the project's expectations, and that combo usually works for me. I don't use playwright though so obviously ymmv)12:31:57
@vid:matrix.org@vid:matrix.orgyes I appreciate that. my experience getting a lot of things working on nixos was fantastic, I was raving about it to colleagues, but this is a lot. I want haibun to be easily consumable on any platform, which is already a lot of work. no idea what adaptation would look like on cloud. this is a typical developer pov, that's all I can say. 12:33:14
@lily:lily.flowersLily Foster(I take that back. It doesn't work for the systemd test suite so I do keep a fedora vm around for that)12:33:28
@lily:lily.flowersLily Foster
In reply to @vid:matrix.org
yes I appreciate that. my experience getting a lot of things working on nixos was fantastic, I was raving about it to colleagues, but this is a lot. I want haibun to be easily consumable on any platform, which is already a lot of work. no idea what adaptation would look like on cloud. this is a typical developer pov, that's all I can say.
Yeah your pov is appreciated! I just wish I had better answers
12:33:54
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
(I take that back. It doesn't work for the systemd test suite so I do keep a fedora vm around for that)
(Systemd test suite has pretty deep system and kernel expectations that must be met. Someone was working on a NixOS test framework setup that runs it though)
12:34:35
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
Yeah your pov is appreciated! I just wish I had better answers
(If you do find something that helps developer DX for this, do send it over to awesome-nix to make it more discoverable for people too!)
12:38:28
@lily:lily.flowersLily Foster* (If you do find something that helps developer experience for this, do send it over to awesome-nix to make it more discoverable for people too!)12:38:45
@vid:matrix.org@vid:matrix.orgI would love to, but have to put it aside right now. nixos is a means to an end for me, not the end.12:38:59
@lily:lily.flowersLily Foster(Also I was kinda suggesting asking in a more general channel because people a lot smarter than me are more likely to give you better answers there 😅)12:42:31
@vid:matrix.org@vid:matrix.orgmaybe when I have more time. I'm very happy with nixos otherwise. and since I use workspaces with hotkeys, having to use a vm is not the end of the world.12:46:57
@vid:matrix.org@vid:matrix.org * maybe when I have more time. I'm very happy with nixos otherwise. and since I use workspaces with hotkeys and x-forwarding, having to use a vm is not the end of the world.12:49:12
@vid:matrix.org@vid:matrix.org * maybe when I have more time. I'm very happy with nixos otherwise. and since I use workspaces with hotkeys and x-forwarding, having to use a vm is not the end of the world. it is a pretty convoluted setup, though.12:50:29
@vid:matrix.org@vid:matrix.org * maybe when I have more time. I'm very happy with nixos otherwise. and since I use workspaces with hotkeys and x-forwarding, having to use a vm is not the end of the world. it is a pretty convoluted setup, though. but that will only get worse if I start tailouring the repo to the OS.12:51:56
@yaya:uwu.isyaya joined the room.14:19:26
@vid:matrix.org@vid:matrix.orgRedacted or Malformed Event14:28:47

Show newer messages


Back to Room ListRoom Version: 6