11 Jul 2025 |
dramforever | ah yes, that would help if you need a daemon | 16:25:00 |
dramforever | you got it | 16:25:06 |
@m4dc4pxx:matrix.org | Unfortunately, running nix-instantiate seems to lead some sort of fork bomb where thousands of nix processes spawn. 🤔 | 16:27:26 |
dramforever | maybe you don't need a daemon? | 16:29:17 |
@m4dc4pxx:matrix.org | See previous posting :)
Hello! I'm trying to do some nix hacking on macos. I've built nix successfully, but my changes aren't showing up when I run the binary. (I've added logging I'm pretty sure I should see, and its not there.) I suspect its because my system nix uses the multi-user setup and the daemon is not running the binary I built. Is there any solution besides replacing the system nix? Or am I looking in the wrong direction? Appreciate any help!
| 16:30:35 |
dramforever | i'm not sure if you need a daemon... | 16:31:18 |
@m4dc4pxx:matrix.org | I don't want a daemon but I don't know if I have a choice. Previously, running nix-instantiate seemed to defer to the system daemon and did not produce the output I expected. | 16:31:23 |
dramforever | i just tried NIX_STORE_DIR=$(pwd)/meow/store NIX_STATE_DIR=$(pwd)/meow/var nix-instantiate --option store local . -A hello | 16:32:30 |
dramforever | this works, but i'm also on linux | 16:32:37 |
dramforever | hopefully it should work on macos | 16:33:07 |
@m4dc4pxx:matrix.org | Do you have multi-user nix installed? | 16:33:29 |
@m4dc4pxx:matrix.org | * Do you have multi-user nix installed/configured? | 16:33:42 |
dramforever | yes | 16:34:17 |
dramforever | --option store local should override that | 16:34:28 |
dramforever | although i think NIX_STORE_DIR also does? but that can't hurt | 16:36:33 |
dramforever | yes i can confirm this works without contacting the daemon | 16:36:53 |
@m4dc4pxx:matrix.org | YES! That does it. | 16:39:06 |
@m4dc4pxx:matrix.org | I can see updated log messages; previously they were unchanged. | 16:39:21 |
@m4dc4pxx:matrix.org | Super appreciated! | 16:39:49 |
@m4dc4pxx:matrix.org | FWIW I think only NIX_STORE_DIR and NIX_STATE_DIR are necessary (as you suspected). | 16:48:32 |
| rntpts joined the room. | 17:43:42 |
| @m4dc4pxx:matrix.org left the room. | 18:37:11 |
Sergei Zimmerman (xokdvium) | In reply to @m4dc4pxx:matrix.org FWIW I think only NIX_STORE_DIR and NIX_STATE_DIR are necessary (as you suspected). You could also use —store with store references, which are URIs (mostly). | 21:29:53 |
12 Jul 2025 |
dramforever | yeah you can probably set it with --store local?something | 03:47:54 |
hexa | https://github.com/NixOS/nix/security/advisories/GHSA-qc7j-jgf3-qmhg | 12:14:53 |
13 Jul 2025 |
| sinan changed their profile picture. | 11:57:01 |
| sinan | 11:57:07 |
| sinan | 11:57:33 |
| sinan changed their profile picture. | 11:58:57 |
| sinan changed their profile picture. | 12:52:20 |