modules: add support for module replacement with disabledModules

This is based on a prototype Nicolas B. Pierron worked on during a
discussion we had at FOSDEM.
This commit is contained in:
Daiderd Jordan
2017-02-28 00:14:48 +01:00
committed by Nicolas B. Pierron
parent 3c9fbfbe7f
commit 3f2566689d
9 changed files with 127 additions and 7 deletions
@@ -0,0 +1,5 @@
{ lib, ... }:
{
disabledModules = [ ./define-enable.nix ];
}