Revert "Add the tool "nixos-typecheck" that can check an option declaration to:"

This reverts commit cad8957eab. It
breaks NixOps, but more importantly, such major changes to the module
system really need to be reviewed.
This commit is contained in:
Eelco Dolstra
2016-03-01 20:52:06 +01:00
parent bf4cafd1dd
commit f3d94cfc23
24 changed files with 127 additions and 703 deletions
-1
View File
@@ -20,7 +20,6 @@ in
options = {
boot.kernelPackages = mkOption {
type = types.packageSet;
default = pkgs.linuxPackages;
# We don't want to evaluate all of linuxPackages for the manual
# - some of it might not even evaluate correctly.
@@ -17,15 +17,14 @@ in rec {
unitOption = mkOptionType {
name = "systemd option";
typerep = "(systemdOption)";
merge = _module: loc: defs:
merge = loc: defs:
let
defs' = filterOverrides defs;
defs'' = getValues defs';
in
if isList (head defs'')
then concatLists defs''
else mergeOneOption _module loc defs';
else mergeOneOption loc defs';
};
sharedOptions = {