How to climb up the learning curve? (specifically nixpkgs/haskellPackages)

Nix is big. I’m a total newbie after a year but here has been what helped me

  1. accept that nix curve is steeped than vim, yet unlike vim which is reinforcing, nix makes you. Forget things , because, well, you write something only once. I solve this problem by not installing programming language stuff globally. If you’re doing something new, spend five minutes to write a .nix file.

  2. master the very basics of language, and then understand the tools gradually with intuition. There are multiple ways of doing things. I just use nixos-rebuild and Nix- shell. It’s better to be expert at one tool than know flags of all

  3. not nixpkgs related, but NixOS related- what helps a lot (if you have prior linux experience) is to browse arch or Gentoo wiki for a topic first, understand it in a framework you are already familiar with and then understand it in nix way.

3 Likes