diff --git a/NixOS.md b/NixOS.md index 560678c..536dcd3 100644 --- a/NixOS.md +++ b/NixOS.md @@ -706,6 +706,13 @@ colmena eval -E '{ nodes, lib, pkgs, ... }: pkgs.linuxPackages_latest.kernel' #=> "/nix/store/n0csng9aw5nhpll1m5rbvvxkkj2j63px-linux-6.10.7" ``` +Lists and strings will be printed. To inspect an attribute set, add `pkgs.lib.attrNames`. + +```shell +colmena eval -E '{ nodes, lib, pkgs, ... }: pkgs.lib.attrNames nodes.yodaTux.pkgs.rust-bin.stable.latest.default' +#=> [...,"type","userHook","version"] +``` + ## Evaluate expressions * https://discourse.nixos.org/t/eval-nix-expression-from-the-command-line/8993/6