Guest User

Untitled

a guest
Oct 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. { config, pkgs, lib, ... }:
  2.  
  3. with lib;
  4.  
  5. let
  6.  
  7. cfg = config.plugins.org-build;
  8.  
  9. in
  10.  
  11. {
  12. options.plugins.org-build = {
  13. enable = mkEnableOption "Build";
  14. sources = mkOption {
  15. type = with types; listOf (submodule {
  16. options = {
  17. source = mkOption { type = path; };
  18. user = mkOption { type = str; };
  19. repo = mkOption { type = str; };
  20. target = mkOption { type = str; };
  21. };
  22. });
  23. description = ''
  24. Orgfile sources to build export.
  25. '';
  26. };
  27. };
  28.  
  29. config = mkIf cfg.enable {
  30. nixpkgs.overlays = [(self: super: {
  31. org-export.export = foo: { your = function result; };
  32. })];
  33.  
  34. home.file.".emacs.d/init.el".source = build { source = cfg.source; };
  35. };
  36. }
Add Comment
Please, Sign In to add comment