blob: 745673a277c96e946d642dd471e8bc8fa5ccf718 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ lib, config, ... }:
let cfg = config.this.overlays;
overlay = ov:
lib.optional cfg."${ov}".enable
(import ./${ov}.nix);
in
{
options = {
this.overlays.emacs.enable = lib.mkEnableOption "custom-built Emacs overlay";
this.overlays.g45_h264.enable = lib.mkEnableOption "intel-vaapi-driver with h264 support on gm45";
};
config.nixpkgs.overlays =
(overlay "emacs") ++
(overlay "g45_h264");
}
|