pro-tip: the APT command to install neovim 0.9.x on Debian bookworm is:
nix profile install nixpkgs#neovim
@fasterthanlime only when nix is rewritten in Rust :P
@jokeyrhyme
Yeah there was a presentation of a rust implementation of nix at nixcon two weeks ago. They're getting closer from what I saw.
@fasterthanlime i know it’s supposed to be a funny haha toot but I get ptsd every time anyone says to just install anything into your profile https://stop-using-nix-env.privatevoid.net
@nrab this says nix-env bad, but "nix profile" the best we have for what I want to do, right?
@fasterthanlime @nrab you can take a look into `home-manager`. In my case not only it installs neovim, it also installs a bunch of plugins, language servers, etc and creates configuration for them all.
@manpacket @nrab but home-manager is only an option if you're actually using nixos as a distro, right? the original post specifically mentions debian: I'm only using nixpkgs.
@fasterthanlime @nrab it works as a standalone thing as well. At least the documentation describes how to do it.
@manpacket @fasterthanlime @nrab yes home-manager works good on other distros as well, i use it both on NixOS and standalone with (kinda) the same config
@fasterthanlime @manpacket @nrab +1 on home-manager's utility across distros! i've made use of it on fedora, ubuntu, and nixos. it's the best!
@manpacket @fasterthanlime @nrab I've never managed to get home-manager to work despite trying on three separate occasions. Zero luck with the previous stable version in NixOS, the current stable version with current stable Nix in Ubuntu or OpenSUSE, or master with current stable Nix in Ubuntu. All this is on WSL, so it's possible that's the issue? But they're different seemingly unrelated errors each time. ¯\_(ツ)_/¯
@fasterthanlime
No, personally I use it on fedora and it works perfectly fine.
@manpacket @nrab
@fasterthanlime @manpacket @nrab I use home-manager to keep Ubuntu, NixOS, and macOS machines feeling like home!
@fasterthanlime @manpacket @nrab I've been using home-manager since I switched to Fedora Silverblue. I love it and hate it at the same time.
It's really nice that I can install tools declaratively, and I think it fits great with an immutable distro. However, there are a couple quirks when using it on non-nixos, which you'll have to figure out by digging through GitHub issues...
@fasterthanlime At this point I am tied to building neovim from source :( it's not that bad though.
@j2kun
Any particular reason for that?