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.

A new version with a workaround for problems of the reverted original.
Discussion: 3f2566689
This commit is contained in:
Daiderd Jordan 2017-02-14 23:18:44 +01:00 committed by Vladimír Čunát
parent bb9a37a2a5
commit d88721e440
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
9 changed files with 127 additions and 7 deletions

View file

@ -0,0 +1,5 @@
{ lib, ... }:
{
disabledModules = [ ./define-enable.nix ];
}