Make nixpkgs configurable through a function parameter