!9IQChSjwSHXPPWTa:lix.systems

Lix

735 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms223 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@k900:0upti.meK900So it's on PATH 22:25:13
@guiniol:matrix.orgguiniolactually it is, you are right22:25:43
@guiniol:matrix.orgguiniol so why isn't it seen when I do the nix store ping 22:25:52
@guiniol:matrix.orgguiniolFWIW, I used the lix install script22:28:48
@k900:0upti.meK900Shell configuration difference? 22:30:08
@guiniol:matrix.orgguiniolI use zsh and the command not found comes from zsh. So yes, but I don't know how :D22:30:44
@guiniol:matrix.orgguiniol adding a ~/.zshenv sourcing /etc/zshrc/ (which sets up lix) seems to do the trick 22:37:26
@guiniol:matrix.orgguiniol I guess nix store does not setup a login shell very explicitely so my own zshrc wasn't getting sourced 22:37:51
@guiniol:matrix.orgguiniol at least nix store ping works. Let's see if nixos-rebuild --build-host does 22:40:28
@guiniol:matrix.orgguiniolit's working!! \o/22:42:46
@guiniol:matrix.orgguiniolthank you!22:42:49
@guiniol:matrix.orgguiniolI'll go do something else and report when it finishes compiling and hopefully nothing crashloops22:48:25
@guiniol:matrix.orgguiniol 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:matrix.orgguiniol(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:matrix.orgguiniolfailed to build.... nice23:41:31
@guiniol:matrix.orgguiniol 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:matrix.orgIrenes 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:matrix.orgIrenesI'm unsure if nix options to the derivation are what you meant to ask about23:55:34
@irenes:matrix.orgIrenes 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:matrix.orgIrenesbut how to request verbosity will depend on what language ecosystem it's in, what build tool it uses, etc23:56:24
@irenes:matrix.orgIrenesthe nixpkgs manual has an easy-to-overlook section on language ecosystems that has specific advice23:56:46
@irenes:matrix.orgIrenesand also the nixpkgs section on stdenv is the place to go to learn about the non-language-specific override options23:57:33
@guiniol:matrix.orgguiniol 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:matrix.orgIrenesoh yep running it by hand is probably the path of least resistance there00:01:06
@irenes:matrix.orgIrenes 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:matrix.orgIrenes and then if the build succeeds I'll have a result/ symlink that points to the build products 00:02:35
@irenes:matrix.orgIrenes(change the architecture to be whatever you're using, of course)00:02:49
@irenes:matrix.orgIrenesmy 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 there00:03:36
@guiniol:matrix.orgguiniolSorry, was trying to get unfree to work, which I did, and ...00:04:35
@guiniol:matrix.orgguiniol zsh: illegal hardware instruction (core dumped) /nix/store/0b6a99wdy3i1ra4blhmrwk7qvly9idrs-mongodb-ce-8.0.4/bin/mongod 00:04:39

Show newer messages


Back to Room ListRoom Version: 10