Remove dead code
Fix uninitialized value warning
Add an input type "nix" for passing arbitrary Nix expressions