diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-01 20:47:08 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-01 20:52:06 +0100 |
commit | f3d94cfc23a2787772a369e2ca9e0cd94e72b8b3 (patch) | |
tree | 2501bf5c09108c836925aefc4674ebec0b508193 /nixos/modules/system/boot/systemd-unit-options.nix | |
parent | bf4cafd1ddbd7c396a9df6a5d0fb02f2b7d21896 (diff) | |
download | nixpkgs-f3d94cfc23a2787772a369e2ca9e0cd94e72b8b3.tar nixpkgs-f3d94cfc23a2787772a369e2ca9e0cd94e72b8b3.tar.gz nixpkgs-f3d94cfc23a2787772a369e2ca9e0cd94e72b8b3.tar.bz2 nixpkgs-f3d94cfc23a2787772a369e2ca9e0cd94e72b8b3.tar.lz nixpkgs-f3d94cfc23a2787772a369e2ca9e0cd94e72b8b3.tar.xz nixpkgs-f3d94cfc23a2787772a369e2ca9e0cd94e72b8b3.tar.zst nixpkgs-f3d94cfc23a2787772a369e2ca9e0cd94e72b8b3.zip |
Revert "Add the tool "nixos-typecheck" that can check an option declaration to:"
This reverts commit cad8957eabcbf73062226d28366fd446c15c8737. It breaks NixOps, but more importantly, such major changes to the module system really need to be reviewed.
Diffstat (limited to 'nixos/modules/system/boot/systemd-unit-options.nix')
-rw-r--r-- | nixos/modules/system/boot/systemd-unit-options.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix index 16d0e098b8c..d4cab93b26b 100644 --- a/nixos/modules/system/boot/systemd-unit-options.nix +++ b/nixos/modules/system/boot/systemd-unit-options.nix @@ -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 = { |