Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created October 20, 2017 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinisil/2e0acb25d7e20249a36e73a6a396fbbe to your computer and use it in GitHub Desktop.
Save infinisil/2e0acb25d7e20249a36e73a6a396fbbe to your computer and use it in GitHub Desktop.
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.plugins.org-build;
in
{
options.plugins.org-build = {
enable = mkEnableOption "Build";
source = mkOption {
type = types.path;
description = "source org";
};
};
config = mkIf cfg.enable {
nixpkgs.overlays = [(self: super: {
org-export.export = foo: { your = function result; };
})];
home.file.".emacs.d/init.el".source = build { source = cfg.source; };
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment