Created
October 18, 2017 21:13
-
-
Save dustinlacewell-wk/9cd4b17756cc2b7f9f0cb321f46d0466 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
args@{ pkgs, ... }: | |
with builtins; | |
with (import <nixpkgs> { }); | |
let | |
# defines programs.emacs.org-build | |
#org-build = (import ../../../nix-hm-org-build) args; | |
org-build = (fetchFromGitHub { | |
owner = "dustinlacewell"; | |
repo = "nix-hm-org-build"; | |
rev = "c1e604690191ef616837d4b8c35f8e6110bc89ae"; | |
sha256 = "03037zcliyvz7xig35wszaczswcwzl730rwdpqqg61mm0g6aiij9"; | |
}) args; | |
# provides org-export.export | |
org-export = (import ../../../nix-hm-org-export) args; | |
# org-export = (fetchFromGitHub { | |
# owner = "dustinlacewell"; | |
# repo = "nix-hm-org-export"; | |
# rev = "master"; | |
# }) args; | |
# export init.org to Github Pages | |
export = org-export.export { | |
source = ./init.org; | |
user = "dustinlacewell"; | |
repo = "emacs.d"; | |
token = getEnv "EMACS_D_GITHUB_TOKEN"; | |
}; | |
in { | |
# import org-build to load its Options | |
imports = [ org-build.module ]; | |
# ensure that emacs gets installed | |
programs.emacs = { enable = true; }; | |
# compile init.el from init.org | |
programs.emacs.org-build = { enable = true; source = ./init.org; }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment