rename.nix: Handle renaming of a whole set of options
mkIf was pushed down, making the obsoleted argument unconditionally evaluated Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
efb18d9aa5
commit
69b6b939ef
@ -56,7 +56,7 @@ let
|
|||||||
inherit visible;
|
inherit visible;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
{ config = setTo (mkIf (fromOf options).isDefined (define (mkMerge (fromOf options).definitions)));
|
{ config = setTo (mkMerge (if (fromOf options).isDefined then [ (define (mkMerge (fromOf options).definitions)) ] else []));
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user