!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

193 Members
57 Servers

Load older messages


SenderMessageTime
15 Sep 2024
@emma:rory.gayEmma [it/its]with future plans to switch to yarn v422:48:29
@emma:rory.gayEmma [it/its] for now, i can get around with using sed in my package to remove corepack, but im not sure how that'll go with yarn v4 22:49:51
@emma:rory.gayEmma [it/its]specifically thinking in context of nixpkgs here, for what it's worth22:56:08
@emma:rory.gayEmma [it/its] made a discussion thread here, for what it's worth: https://github.com/NixOS/nixpkgs/pull/274052#discussion_r1760381428 23:10:45
16 Sep 2024
@sandro:supersandro.deSandro 🐧sounds like we then need to add support to the new build helpers for that 😅16:16:44
@silentlurker:matrix.orgsilentlurker joined the room.20:01:00
17 Sep 2024
@emma:rory.gayEmma [it/its]seems so02:02:13
@tumble1999:matrix.orgTumbleI was trying to make a project that built to react, react native and electron But I think its really complicated and confusing to understand So I might give up on that13:51:41
18 Sep 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.19:05:40
@lassulus:lassul.uslassulus joined the room.19:54:28
@artur:glasgow.socialmoved to @amadaluzia:tchncs.de changed their profile picture.23:00:37
19 Sep 2024
@vengmark2:matrix.org@vengmark2:matrix.org joined the room.04:19:44
@vengmark2:matrix.org@vengmark2:matrix.org Does anyone know how to set up eslint with just Nix, that is, without package-*.json? It wants to import from two packages, "globals" and "@eslint/js", and neither of those are in nixpkgs. 04:21:46
22 Sep 2024
@qfe6mwof7:matrix.org@qfe6mwof7:matrix.org left the room.06:56:10
28 Sep 2024
@tumble1999:matrix.orgTumblecan the build phase of buildNpmPackage see files in absolute paths?16:47:57
@winter:catgirl.cloudWintercan you rephrase?16:48:37
@winter:catgirl.cloudWinteror give an example16:48:42
@winter:catgirl.cloudWinteri don't know what you're asking :)16:48:45
@tumble1999:matrix.orgTumble

ok so i have
https://gitlab.com/balancemod/main-site/-/blob/develop/pkgs/bmod.nix?ref_type=heads

which builds an eleventy site and sets up an executable that runs an express server

the elventy also starts a discord webhook bot https://gitlab.com/balancemod/main-site/-/blob/develop/.eleventy.js?ref_type=heads#L194
https://gitlab.com/balancemod/main-site/-/blob/develop/_src/webhook/webhook.js?ref_type=heads#L161
which sends any new posts in the eleventy server to the discord webhook

this is used by a nixos config which creates an override
https://gitlab.com/balancemod/main-site/-/blob/nixos/default.nix?ref_type=heads#L67
which sets the discord token using sops nix https://gitlab.com/balancemod/main-site/-/blob/nixos/secrets.json?ref_type=heads

rebuilding nixos and error returns of getaddrinfo EAI_AGAIN discord.com (via Error)

i decide to make a test thing

bmod-test = bmod.override {
        stage = "beta";
        extraBuildOptions = {
          BMOD_DISCORD = "/home/tumble/Documents/git/bmod/main-site/discord.json";
          BMOD_WEBHOOKS = builtins.toFile "webhook-config-beta.json" (builtins.toJSON [
            {
              name = "abc123";
              channel = "975111433387925564";
              filter = {
                data = {
                  tags = "posts";
                  category = "blog";
                };
              };
            }
          ]);
        };
      };
    };

which building that comes back with no such file or directory, open '/home/tumble/Documents/git/bmod/main-site/discord.json'

17:11:20
@winter:catgirl.cloudWinteryeah you can't do that17:15:06
@winter:catgirl.cloudWintereither remove the quotes to get it copied to the store (won't work with flakes) or use a relative path into the same repo (will work with flakes)17:15:37
@winter:catgirl.cloudWinter * 17:15:44
@tumble1999:matrix.orgTumbleim using the absulute path to mirror how it should be for the server which has an abosolute path to sops decrypted secret file17:23:50
@tumble1999:matrix.orgTumble* im using the absulute path to mirror how it should be for the server which has an abosolute path to sops decrypted secret value file17:24:00
@winter:catgirl.cloudWintersure, but you can't do that, since it's sandboxed. try to see if you can get it to use that path at runtime?17:29:48
@tumble1999:matrix.orgTumblehmm i cound do a conviluted thing where i have eleventy output the posts to a json file in a seperate deviation output and the include that in a seperate package that just runs the webhook17:34:35
@tumble1999:matrix.orgTumble* hmm i could do a conviluted thing where i have eleventy output the posts to a json file in a seperate deviation output and the include that in a seperate package that just runs the webhook17:34:42
@tumble1999:matrix.orgTumble* hmm i could do a convaluted thing where i have eleventy output the posts to a json file in a seperate deviation output and the include that in a seperate package that just runs the webhook17:35:06
@tumble1999:matrix.orgTumbleRedacted or Malformed Event17:58:52
@larstvei:matrix.orglarstvei changed their display name from Lars Tveito to larstvei.23:09:53

Show newer messages


Back to Room ListRoom Version: 6