nixos/nixos-option: Rewrite in a more suitable language

Also add --all, which shows the value of all options.  Diffing the --all
output on either side of contemplated changes is a lovely way to better
understand what's going on inside nixos.
This commit is contained in:
Chuck
2019-11-04 15:11:44 +01:00
committed by Linus Heckemann
parent d690c20efd
commit 59c5bfc86b
8 changed files with 695 additions and 349 deletions
+1 -4
View File
@@ -41,10 +41,7 @@ let
inherit (config.system.nixos-generate-config) configuration;
};
nixos-option = makeProg {
name = "nixos-option";
src = ./nixos-option.sh;
};
nixos-option = pkgs.callPackage ./nixos-option { };
nixos-version = makeProg {
name = "nixos-version";