| 7 Mar 2024 |
infinisil | danielsidhion: Are you still there? | 15:57:20 |
danielsidhion | Brief connection issues | 16:00:36 |
efx | I have a desire to document a common obstacle I face using nix installed on alternate GNU/Linux distributions. It is practical advice on adding ~/.nix-profile/bin to $PATH using .bashrc. Is there an ideal place to put this kind of documentation? | 17:20:38 |
danielsidhion | I think that is already documented in the nix manual: https://nixos.org/manual/nix/stable/installation/env-variables
It's not particularly discoverable though. What resources did you read/search for when trying to install nix on your distribution? | 17:25:21 |
infinisil | Eli Flanagan: That should be done by the Nix installer (see here). If it's not done it sounds like something went wrong | 17:34:18 |
efx | In reply to @danielsidhion:nixos.dev I think that is already documented in the nix manual: https://nixos.org/manual/nix/stable/installation/env-variables It's not particularly discoverable though. What resources did you read/search for when trying to install nix on your distribution? ooh, thanks for that link! I had not seen that before. My immediate context was trying nix copy to ssh://myhost myclosure. I searched discourse, then started digging in the stable reference manual. | 17:36:12 |
efx | In reply to @infinisil:matrix.org Eli Flanagan: That should be done by the Nix installer (see here). If it's not done it sounds like something went wrong true, and the installer placed the appropriate line in the users ~/.bash_profile. Some context may clarify. I have a single user Nix installation on vanilla AmazonLinux2023 servers. | 17:37:06 |
@jade_:matrix.org | oh hmmm i wonder if this is an old bug of mine | 17:37:36 |
@jade_:matrix.org | https://github.com/NixOS/nix/issues/7508 ? | 17:38:05 |
efx | In reply to @jade_:matrix.org https://github.com/NixOS/nix/issues/7508 ? ooh, quite helpful! I didn't know about the NIX_SSHOPTS. FWIW, I and team have run into this issue for years. I've simply taught folks to ensure they load a login shell for the user we install nix under. | 17:39:33 |
efx | sudo su - mynixuser | 17:39:41 |
@jade_:matrix.org | ffs | 17:39:59 |
@jade_:matrix.org | can we fix our bugs 😠| 17:40:08 |
efx | lol, sorry, what does ffs mean? | 17:40:20 |
@jade_:matrix.org | uhhh, it was uncalled for sorry | 17:40:34 |
@jade_:matrix.org | I'm just frustrated | 17:40:39 |
efx | oh, no worries at all! I'm a jargon freak so love to expand my lexicon. | 17:40:55 |
infinisil | I wouldn't mind Nix just getting a feature freeze until a large part of bugs are fixed | 17:41:08 |
efx | I'll infer frustration frustration :) | 17:41:15 |
@jade_:matrix.org | In reply to @infinisil:matrix.org I wouldn't mind Nix just getting a feature freeze until a large part of bugs are fixed nixpkgs did it already, the nix team just needs to actually consider what it means | 17:41:36 |
infinisil | Oh didn't think of it that way, but yeah Nixpkgs sure did! | 17:41:56 |
efx | For me, I've been learning the value of having these tiny roadblock issues documented with quick workarounds. They feel like minor things, not worthy of official documentation. In my understanding, community tips/tricks that are discoverable. | 17:43:47 |
efx | Correct me if I'm wrong: https://nixos.wiki/ is not a good place for this. | 17:44:08 |
@jade_:matrix.org | correct! | 17:44:25 |
@jade_:matrix.org | imo this one is a bug though | 17:44:29 |
@jade_:matrix.org | we should fix it | 17:44:32 |
efx | hmm. What path does prefix refer to here? | 17:48:40 |
@jade_:matrix.org | In reply to @efx:matrix.org hmm. What path does prefix refer to here? --prefix passed to configure | 17:52:03 |
@jade_:matrix.org | when building the program | 17:52:11 |
danielsidhion | It's defined in a previous page when installing from source: https://nixos.org/manual/nix/stable/installation/building-source | 17:52:14 |