From e640ab724147c51272090f429edcf8376626ed45 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 1 Mar 2016 02:39:30 +0100 Subject: programs/git: Flesh out type info for Git config This now is a little more accurate than providing the name and a propagation of types.unspecified. Signed-off-by: aszlig --- modules/user/aszlig/programs/git/default.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/user/aszlig/programs/git/default.nix b/modules/user/aszlig/programs/git/default.nix index 0090b617..62f0218c 100644 --- a/modules/user/aszlig/programs/git/default.nix +++ b/modules/user/aszlig/programs/git/default.nix @@ -44,14 +44,9 @@ in { config = mkOption { description = "System-wide default config for Git"; - type = let - superType = types.attrsOf types.unspecified; - in mkOptionType { - name = "attribute set of either plain values or " - + "attribute sets of values (if it is a subsection)"; - inherit (superType) check merge; - inherit (superType) getSubOptions getSubModules substSubModules; - }; + type = with types; let + value = either (either bool int) str; + in attrsOf (either (attrsOf value) value); default = {}; example = { -- cgit 1.4.1