28 Sep 2024 |
Tumble | can the build phase of buildNpmPackage see files in absolute paths? | 16:47:57 |
Winter | can you rephrase? | 16:48:37 |
Winter | or give an example | 16:48:42 |
Winter | i don't know what you're asking :) | 16:48:45 |
Tumble | 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 | yeah you can't do that | 17:15:06 |
Winter | either 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 | * | 17:15:44 |
Tumble | im using the absulute path to mirror how it should be for the server which has an abosolute path to sops decrypted secret file | 17:23:50 |
Tumble | * im using the absulute path to mirror how it should be for the server which has an abosolute path to sops decrypted secret value file | 17:24:00 |
Winter | sure, 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 |
Tumble | hmm 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 webhook | 17:34:35 |
Tumble | * 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 webhook | 17:34:42 |
Tumble | * 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 webhook | 17:35:06 |
Tumble | Redacted or Malformed Event | 17:58:52 |
| larstvei changed their display name from Lars Tveito to larstvei. | 23:09:53 |
1 Oct 2024 |
| -_o joined the room. | 21:00:17 |
15 Oct 2024 |
| dish [Fox/It/She] joined the room. | 07:40:39 |
17 Oct 2024 |
| ixxie joined the room. | 17:12:59 |
18 Oct 2024 |
| Tomodachi94 (they/them) joined the room. | 04:52:27 |
19 Oct 2024 |
Tomodachi94 (they/them) | I added @NixOS/node as "project admins" to https://github.com/orgs/NixOS/projects/83 :) | 02:29:17 |
| mwoodpatrickmx joined the room. | 17:01:21 |
21 Oct 2024 |
| moved to @amadaluzia:tchncs.de changed their display name from (lambda (f l) (format nil "~a ~a")) "Artur" "Manuel" to (artur 'manuel). | 20:03:05 |
22 Oct 2024 |
| aktaboot changed their profile picture. | 12:11:11 |
23 Oct 2024 |
| aktaboot changed their profile picture. | 19:54:05 |
25 Oct 2024 |
Emma [it/its] | question, if i have this hack: https://github.com/spacebarchat/server/blob/master/flake.nix#L44-L62
is this something i can just upstream into a build script or is there a better way to handle this? (typescript) | 15:06:56 |