17 Dec 2024 |
K900 | So it's on PATH | 22:25:13 |
guiniol | actually it is, you are right | 22:25:43 |
guiniol | so why isn't it seen when I do the nix store ping | 22:25:52 |
guiniol | FWIW, I used the lix install script | 22:28:48 |
K900 | Shell configuration difference? | 22:30:08 |
guiniol | I use zsh and the command not found comes from zsh. So yes, but I don't know how :D | 22:30:44 |
guiniol | adding a ~/.zshenv sourcing /etc/zshrc/ (which sets up lix) seems to do the trick | 22:37:26 |
guiniol | I guess nix store does not setup a login shell very explicitely so my own zshrc wasn't getting sourced | 22:37:51 |
guiniol | at least nix store ping works. Let's see if nixos-rebuild --build-host does | 22:40:28 |
guiniol | it's working!! \o/ | 22:42:46 |
guiniol | thank you! | 22:42:49 |
guiniol | I'll go do something else and report when it finishes compiling and hopefully nothing crashloops | 22:48:25 |
guiniol | actually, before I go. I ran nixos-rebuild with --log-format multiline-with-logs and I was hoping I would get something like the regular progress line (default no --log-format ) but also logs from the compilations. However, I am only seeing the logs from the compilations. Is that because it's using a build-host or is there a different log option that would give me what I want? | 22:52:48 |
guiniol | (there are also no colours at all during the compilation, maybe an issue with tmux/mosh/ssh or something along the stack) | 22:54:05 |
guiniol | failed to build.... nice | 23:41:31 |
guiniol | so... I can set mongodbPackage = pkgs.mongodb-ce; in the unifi config. But. Is there a way to set options for that mongodb package? because I get literally nothing out of the logs which makes it hard to debug. | 23:42:41 |
Irenes | yeah depending on whether the derivation is mkDerivation or something more interesting, there are a variety of methods it provides with names along the lines of override or overrideWhatever which allow you to replace the parameters it was originally given | 23:55:05 |
Irenes | I'm unsure if nix options to the derivation are what you meant to ask about | 23:55:34 |
Irenes | but if for example the thing you really want to do is pass -v to the compiler or something, that might still be a good first step towards making it happen | 23:56:05 |
Irenes | but how to request verbosity will depend on what language ecosystem it's in, what build tool it uses, etc | 23:56:24 |
Irenes | the nixpkgs manual has an easy-to-overlook section on language ecosystems that has specific advice | 23:56:46 |
Irenes | and also the nixpkgs section on stdenv is the place to go to learn about the non-language-specific override options | 23:57:33 |
guiniol | I switched to the CE version which is precompiled, and I wanted to change how it gets run to see if I can at least get logs. I think I will just try to run it manually once I can figure out where the files are (currently enabling unfree packages so that I can nix build --print-out-paths | 23:58:07 |
18 Dec 2024 |
Irenes | oh yep running it by hand is probably the path of least resistance there | 00:01:06 |
Irenes | if you're working in a flake, one trick I find really useful for debugging is that if I have a nix expression that returns the derivation I want to hack on, I export that derivation from outputs.packages.x86_64-linux.whatever and then I can just do nix build .#whatever | 00:02:23 |
Irenes | and then if the build succeeds I'll have a result/ symlink that points to the build products | 00:02:35 |
Irenes | (change the architecture to be whatever you're using, of course) | 00:02:49 |
Irenes | my various config repos do that for most of the packages I've had to customize in some way, since they occasionally require debugging and it's "free" to list them there | 00:03:36 |
guiniol | Sorry, was trying to get unfree to work, which I did, and ... | 00:04:35 |
guiniol | zsh: illegal hardware instruction (core dumped) /nix/store/0b6a99wdy3i1ra4blhmrwk7qvly9idrs-mongodb-ce-8.0.4/bin/mongod | 00:04:39 |