/current-system

Like `builtins.currentSystem` but for the CLI

Primary LanguageNixGNU Affero General Public License v3.0AGPL-3.0

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"