Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 307 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 307 Bytes

current-system

Like builtins.currentSystem but for accessing the native (current) "system" from the command line.

Usage

# Get current system
$ nix run github:nix-systems/current-system
aarch64-darwin

# Get as JSON
$ nix run github:nix-systems/current-system -- --json
"aarch64-darwin"