added nix support