mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-23 02:36:05 +01:00
docs: another nix-eval example
This commit is contained in:
parent
0c44691e3e
commit
dff8a2f909
9
NixOS.md
9
NixOS.md
@ -692,7 +692,14 @@ colmena eval -E '{ nodes, lib, pkgs, ... }: nodes.yodaTux.config.environment.sys
|
||||
|
||||
```shell
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user