Cut restated "what", domain-glossary framing, cross-file consumption narration, and against-alternative justification from in-file comments; keep only non-obvious "why" and load-bearing pointers. Drop the `generateCompletions` line (a no-op restatement of the upstream default) and its comment.
14 lines
382 B
Nix
14 lines
382 B
Nix
{ config, lib, ... }:
|
|
# Reference example for the module shape: imported unconditionally, but inert
|
|
# until a host sets its `enable` flag.
|
|
let
|
|
cfg = config.modules.example;
|
|
in
|
|
{
|
|
options.modules.example.enable = lib.mkEnableOption "the reference example module";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.etc."skeleton-example".text = "This Module is enabled.\n";
|
|
};
|
|
}
|