nixos-version: Add --json flag and show system.configurationRevision

This commit is contained in:
Eelco Dolstra
2020-02-05 23:15:18 +01:00
parent 855fcc324a
commit 7e9b745174
3 changed files with 33 additions and 2 deletions
+1
View File
@@ -48,6 +48,7 @@ let
name = "nixos-version";
src = ./nixos-version.sh;
inherit (config.system.nixos) version codeName revision;
inherit (config.system) configurationRevision;
};
nixos-enter = makeProg {