<Ankhers>
Is there a way for me to install one or two packages from a local nixpkgs?
<simpson>
Yes. There's several patterns, depending on what you want. For example, nix-env can take a -f flag to point at a particular nixpkgs, or the NIX_PATH environment variable can be pointed at it.
justanotheruser has quit [Ping timeout: 250 seconds]
justanotheruser has joined #home-manager
jiribenes has quit [Remote host closed the connection]
<Ankhers>
Is there a way to do it through home manager so that I install this one thing through my local nixpkgs and everything else gets installed through whatever channel home manager would normally use?
<SumnerEvans[m]>
honestly, I would suggest you use overlays since that is more reproducible
<Ankhers>
I want to do this because Erlang R24 is not yet available in nixpkgs, but I want to use it.
<Ankhers>
So an overlay would be better?
<SumnerEvans[m]>
I think so. That's what I normally use whenever I want to use a more up-to-date package.
<simpson>
Not better, just different, depending on what you want.
<SumnerEvans[m]>
^ I should clarify: it is my personal opinion/preference to use overlays in these sorts of cases. :)
<simpson>
SumnerEvans[m]: I agree that overlays have nice reproducibility properties. One thing that NIX_PATH is great for is ergonomics: a project can be easily adjusted to have an ad-hoc package set, as long as it's got a valid expression in that local nixpkgs.
<simpson>
So if one wants to build a single fresh package from a bleeding-edge nixpkgs and put it in their nix-env as a temporary solution, then it's easy.
jesystanii has joined #home-manager
hexa- has quit [Read error: Connection reset by peer]
hexa- has joined #home-manager
hexa- has quit [Quit: WeeChat 2.9]
hexa- has joined #home-manager
jesystanii has quit [Ping timeout: 252 seconds]
johannes_ has joined #home-manager
johannes_ is now known as kenran
<kenran>
I'm using hm on my NixOS and on my work Ubuntu system, but after an update my fish shell stopped behaving as it used to:
<kenran>
When I open up a terminal via the window manager's hotkey, it should start a kitty terminal with the shell set to ${pkgs.fish}/bin/fish, and it does that, but the shell keeps printing errors that indicate that the session variables and other HM stuff are not loaded at all.
<kenran>
I recently switched to i3 on Ubuntu from bspwm (bspwm broke too after a nix-channel --update and apt-get upgrade)
<kenran>
on bspwm I never had that problem. The strange thing is: When I set the shell path to zsh, where the config is also managed via HM like for fish, everything works, I can then ofc start fish and use it.
<kenran>
Any ideas what I should look for?ls
<kenran>
Same problem btw when I set i3's terminal to "${pkgs.xst}/bin/xst -e ${pkgs.fish}/bin/fish", so it seems to have to do something with the way/environment i3 starts the terminal (and only on Ubuntu).
<kenran>
i3 itself is configured with HM, if that matters, but I've installed the binary from aptitude (as I couldn't let HM start my xsession on Ubuntu)
<{^_^}>
nix-community/home-manager#1999 (by xvello, 1 day ago, open): session's $PATH does not include nix-profile or cfg.sessionPath anymore
<kenran>
_virkony_: Oh, that's most definitely it! I was looking for an issue in HM when my bspwm stopped working (which then probably had the same cause), but it wasn't created then!
<_virkony_>
kenran: I temporary locked my home-manager channel to previous commit until things will sort out
<kenran>
_virkony_: Ah, I though I was getting crazy since I didn't understand why zsh would still work, but I remembered that I still use my old .zshenv file which adds .nix-profile/bin to the PATH!
<kenran>
_virkony_: Thanks for pointing me to it. Pinning HM is something that has been on my TODO list for a while, but it just wasn't necessary before. I'm not even sure how to do it, but I think I'll get to that when porting to flakes at some point and try to make do with zsh -> fish for a couple of days.
<_virkony_>
kenran: I also had that one but under condition that NIX_PATH is not set. As result newly started terminals had no nix at all