Created
October 20, 2017 17:30
-
-
Save infinisil/2e0acb25d7e20249a36e73a6a396fbbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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