docs: another nix-eval example

This commit is contained in:
Daniel Langbein 2024-09-02 11:47:37 +02:00
parent 0c44691e3e
commit dff8a2f909
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -692,7 +692,14 @@ colmena eval -E '{ nodes, lib, pkgs, ... }: nodes.yodaTux.config.environment.sys
```shell ```shell
colmena eval -E '{ nodes, lib, pkgs, ... }: pkgs.linux' colmena eval -E '{ nodes, lib, pkgs, ... }: pkgs.linux'
#=> "/nix/store/6l9b3dly45iv2rp17hk5c3wvawaq0viy-linux-6.6.46" #=> "/nix/store/bmyh7a4j9xim7xxc5x1qk1qvlb2y7186-linux-6.6.48"
```
```shell
colmena eval -E '{ nodes, lib, pkgs, ... }: pkgs.linuxPackages.kernel'
#=> "/nix/store/bmyh7a4j9xim7xxc5x1qk1qvlb2y7186-linux-6.6.48"
colmena eval -E '{ nodes, lib, pkgs, ... }: pkgs.linuxPackages_latest.kernel'
#=> "/nix/store/n0csng9aw5nhpll1m5rbvvxkkj2j63px-linux-6.10.7"
``` ```
## Evaluate expressions ## Evaluate expressions