From 1a2c31b3575a34ca0f77720d613df07bd2389644 Mon Sep 17 00:00:00 2001 From: Carter Ison Date: Mon, 29 Jan 2024 17:17:56 -0700 Subject: [PATCH 1/2] nixos-version: Add missing options Namely, '--configuration-revision' and '--json' were missing. --- _nixos-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_nixos-version b/_nixos-version index ece1b08..4a30e82 100644 --- a/_nixos-version +++ b/_nixos-version @@ -4,4 +4,4 @@ _nix-common-options _arguments \ - '(- *)'{--hash,--revision}'[Print only the git hash of the channel]'\ + '(- *)'{--hash,--revision,--configuration-revision,--json}'[Print only the git hash of the channel]'\ From ca444b0a9994ed1dafdb526b71e5b07586302d29 Mon Sep 17 00:00:00 2001 From: Sebastian Sellmeier Date: Thu, 7 Mar 2024 13:50:56 +0100 Subject: [PATCH 2/2] Update after review --- _nixos-version | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_nixos-version b/_nixos-version index 4a30e82..a193606 100644 --- a/_nixos-version +++ b/_nixos-version @@ -4,4 +4,6 @@ _nix-common-options _arguments \ - '(- *)'{--hash,--revision,--configuration-revision,--json}'[Print only the git hash of the channel]'\ + '(- *)'{--hash,--revision}'[Show the full SHA1 hash of the Git commit from which this configuration was built.]'\ + '--configuration-revision[Show the configuration revision if available.]'\ + '--json[Print a JSON representation of the versions of NixOS and the top-level configuration flake.]'