[Nix-dev] Wrapping functions?

Joe Hillenbrand joehillen at gmail.com
Fri Mar 27 17:15:33 CET 2015


Is there a better way to do this?
https://gist.github.com/joehillen/5e762c74b6b8f7595736

What I'm trying to do here is create wrapper functions that set some
default values.
The problem is that I have to pass along every attribute I want to be able
to set at the top level.
As you can see, I don't do anything with `description` or `openssh`. I just
pass it along all the way
down to `extraUsers`.

Based on what I've seen, there seems like there is some way to accomplish
this (like an override or 'mkDefault')
but I keep getting confused.

Still learning. Please excuse my ignorance.

-Joe Hillenbrand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150327/a1938597/attachment.html 


More information about the nix-dev mailing list