#nix #nixos #language #programming #functional
-
Is composed by
builtins
,import
andpkgs.lib
-
builtins
is composed by base operations such astoString
-
import
is used to import files and evaluate it result -
pks.lib
uses functions extract from NixOS Package
One import thing here is that builtins
and pkgs.lib
shared common functions with the same implementation.
$ echo "x:x+1" > file.nix
import ./ file.nix 1 # if you file has a function you can pass the argument directly