!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
10 Sep 2023
@shaniag:matrix.orgshaniagwith a path20:18:29
@lily:lily.flowersLily FosterOof that means it did not do the environment variable interpolation20:20:42
@lily:lily.flowersLily FosterI thought ExecStart did but maybe it doesn't do that var20:20:58
@shaniag:matrix.orgshaniagok, should i put that stuff in script?20:21:12
@lily:lily.flowersLily Foster You could. Try just using %d in place of $CREDENTIALS_DIRECTORY real quick though and see if that works 20:22:52
@lily:lily.flowersLily Foster(Still with ExecStart to test)20:23:01
@shaniag:matrix.orgshaniag
In reply to @lily:lily.flowers
You could. Try just using %d in place of $CREDENTIALS_DIRECTORY real quick though and see if that works
okayy, so this works for some reason
20:26:14
@lily:lily.flowersLily Foster Neat apparently ExecStart does substitute env vars but it does so earlier than that var exists. But they provide %d for use in certain unit options and I guess you have to use that when it's for creds and in the execstart line 20:27:28
@lily:lily.flowersLily FosterIt's probably due to Arcane Nonsense™️ so it might be best to just accept that that's the case and use it 😅20:28:28
@shaniag:matrix.orgshaniag
In reply to @lily:lily.flowers
It's probably due to Arcane Nonsense™️ so it might be best to just accept that that's the case and use it 😅
hmm, okay :)
20:28:46
@shaniag:matrix.orgshaniag

Can I somehow shorten this?

${pkgs.nodejs_20}/bin/node dbInit.js && ${pkgs.nodejs_20}/bin/node index.js --token=%d/bot.token
20:28:54
@lily:lily.flowersLily FosterYou could make dbInit a ExecStartPre option20:31:36
@lily:lily.flowersLily Foster If you did use npm-installed bins too then you wouldn't need the ${pkgs.nodejs_20}/bin/node part either :) 20:32:45
@shaniag:matrix.orgshaniag
In reply to @lily:lily.flowers
If you did use npm-installed bins too then you wouldn't need the ${pkgs.nodejs_20}/bin/node part either :)
i am tooooo lazy now it works and I never want to change it again hahaha
20:33:11
@lily:lily.flowersLily FosterYeah I definitely get it, I'm happy to help with whatever works for you20:33:41
@shaniag:matrix.orgshaniagThe problem is now my nextcloud broke lmao20:33:48
@shaniag:matrix.orgshaniagafter it worked for multiple years20:33:58
@lily:lily.flowersLily Fosterrip20:34:17
@shaniag:matrix.orgshaniagprobably has something to do with the postgres stuff i added20:34:28
11 Sep 2023
@vid:matrix.org@vid:matrix.org joined the room.18:43:45
@vid:matrix.org@vid:matrix.orghi Nix NodeJS people18:43:59
@vid:matrix.org@vid:matrix.orgI'd like to be social instead of starting off with a question, but I have a question. trying to get playwright working. there is probably a better way to do this (flakes?) but this is where I'm at: https://github.com/vid/nixos/blob/main/playwright.nix however, there is some kind of problem with low level library set up. I guess it comes down to finding /lib64/ld-linux-x86-64.so.2 I've buckled a lot of swashes, but feel stuck here, any suggestions?18:48:32
@vid:matrix.org@vid:matrix.orgchatgpt is telling me I have to patch the binaries. I am starting to see the problem with nix with this, it's a whole minefield of footguns18:56:06
@lily:lily.flowersLily Foster
In reply to @vid:matrix.org

I'd like to be social instead of starting off with a question, but I have a question. trying to get playwright working. there is probably a better way to do this (flakes?) but this is where I'm at: https://github.com/vid/nixos/blob/main/playwright.nix

however, there is some kind of problem with low level library set up. I guess it comes down to finding /lib64/ld-linux-x86-64.so.2
I've buckled a lot of swashes, but feel stuck here, any suggestions?

Can you tell us more of what you are trying to run specifically? Something's very wrong here if you are having to manually muck with ld path stuff
19:12:03
@vid:matrix.org@vid:matrix.orgthat's what I'm hoping. I'm just trying to install https://github.com/Microsoft/playwright. it installs ELF binaries for firefox, chrome, webkit. so I had to install a bunch of libraries to support them (see my playwright.nix). but it still can't launch because I guess it needs /lib64/ld-linux-x86-64.so.2, which is under /nix/store/<hash>/19:16:01
@vid:matrix.org@vid:matrix.org * that's what I'm hoping. I'm just trying to install and use https://github.com/Microsoft/playwright. it installs ELF binaries for firefox, chrome, webkit. so I had to install a bunch of libraries to support them (see my playwright.nix). but it still can't launch because I guess it needs /lib64/ld-linux-x86-64.so.2, which is under /nix/store/<hash>/ 19:16:14
@vid:matrix.org@vid:matrix.org * that's what I'm hoping. I'm just trying to install and use https://github.com/Microsoft/playwright. it installs ELF binaries for firefox, chrome, webkit. so I had to install a bunch of libraries to support them (see my playwright.nix). but it still can't launch because I guess it expects /lib64/ld-linux-x86-64.so.2, but its under /nix/store/<hash>/ 19:16:37
@vid:matrix.org@vid:matrix.org * that's what I'm hoping. I'm just trying to install and use https://github.com/Microsoft/playwright. it installs ELF binaries for firefox, chrome, webkit. so I had to install a bunch of libraries to support them (see my playwright.nix). but it still can't launch because I guess it expects /lib64/ld-linux-x86-64.so.2, but its under /nix/store/\<hash>/ 19:17:10
@vid:matrix.org@vid:matrix.org * that's what I'm hoping. I'm just trying to install and use https://github.com/Microsoft/playwright. it installs ELF binaries for firefox, chrome, webkit. so I had to install a bunch of libraries to support them (see my playwright.nix). but it still can't launch because I guess it expects /lib64/ld-linux-x86-64.so.2, but its under /nix/store/<hash>/ 19:17:17
@vid:matrix.org@vid:matrix.orgif I do this terrible thing, it works; sudo mkdir /lib64; sudo ln -s /nix/store/46m4xx889wlhsdj72j38fnlyyvvvvbyb-glibc-2.37-8/lib/ld-linux-x86-64.so.2 /lib64/ 19:24:57

Show newer messages


Back to Room ListRoom Version: 6