| 30 Apr 2023 |
Shyim | or add your machine as remote builder to your local nix :D | 16:13:20 |
emily | In reply to @shyim:matrix.org or add your machine as remote builder to your local nix :D or copy your hive config onto that VPS and use apply-local xd | 16:13:56 |
@obsidianical:matrix.org | i prefer remote building generally bc i work from my laptop a lot and have significant storage and performance constraints there | 16:14:01 |
@obsidianical:matrix.org | In reply to @me:indeednotjames.com or copy your hive config onto that VPS and use apply-local xd i mean.. that kinda defeats the point | 16:14:24 |
Shyim | But I assume arion does some evaluation locally | 16:14:35 |
Shyim | do you spawn only docker containers? | 16:14:41 |
@obsidianical:matrix.org | arion is only one part of the config, there's also some other things that work fine, both a nixos container and some stuff running directly on the vps | 16:15:20 |
@obsidianical:matrix.org | without container i mean | 16:15:32 |
Shyim | if you want to run normal containers with arion you can build your a workaround with docker-compose + systemd unit :D | 16:16:03 |
@obsidianical:matrix.org | In reply to @me:indeednotjames.com
I highly recommend setting boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; in your desktop's configuration.nix if you do aarch64 stuff.
This will enable cross compilation, meaning you will be able to eval and build your ARM VPS on x86_64 :) okay that indeed fixes it, thanks | 16:17:23 |
emily | In reply to @obsidianical:matrix.org okay that indeed fixes it, thanks awesome :) | 16:21:49 |
@obsidianical:matrix.org | thanks! :) | 16:21:55 |
@obsidianical:matrix.org | hi again, is it possible to insert a secret into for example an extraConfig string? i'm using flakes so just simply inserting a string isn't possible, and the mediawiki oidc plugin doesn't support a path for the client secret | 19:19:55 |
hexa | can you show how you set up that plugin? | 19:22:01 |
hexa | also not really a colmena question 🙂 | 19:22:17 |
@obsidianical:matrix.org |  Download clipboard.png | 19:22:36 |
@obsidianical:matrix.org | In reply to @hexa:lossy.network also not really a colmena question 🙂 well, i was hoping there might be a special way to dynamically insert a string or something that might just not be documented or sth, wouldn't have been the first time lol | 19:23:10 |
hexa | haha, ok. so | 19:23:33 |
@obsidianical:matrix.org | (not with colmena specifically that i know of, but i've seen that quite often with other tools and i'd say it's worth a try generally) | 19:23:36 |
hexa | extraConfig is just php, so you can fopen things | 19:23:42 |
hexa | or file_get_contents, as you tried | 19:23:53 |
@obsidianical:matrix.org | i know, as you can see with me trying that hack | 19:23:52 |
@obsidianical:matrix.org | which doesn't work | 19:24:00 |
@obsidianical:matrix.org | pasting in the raw key string works, but i intend to make the repo public | 19:24:15 |
hexa | you could add an EnvironmentFile to the systemd unit and read from the environment | 19:24:23 |
hexa | and use getenv() instead | 19:24:46 |
hexa | or use LoadCredential on the unit, and read from $CREDENTIALS_ROOT | 19:25:23 |
@obsidianical:matrix.org | gonna try the environment var thing | 19:30:06 |
emily | In reply to @obsidianical:matrix.org clipboard.png has the service user permissions to access /var/mediawiki?
seems like an usual path -- I would expect something like /var/lib/mediawiki instead.
but I am not familiar with whatever service that is.
plus, I am on mobile rn
but with extraConfigs just being php, you should be able to debug it fairly decently
(just my two cents) | 19:38:22 |
@obsidianical:matrix.org | if it didn't it'd throw a permission error (which it did before, now there's no error at all and it still doesn't seem to work) | 19:39:21 |