Nix import keyword
The import
keyword will load, parse, and return the Nix expression in the specified path. If the path is a directory, the file default.nix
in that directory will be imported.
Any Nix value can be imported this way, from a simple integer to a function.