Created
October 18, 2017 18:56
-
-
Save dustinlacewell-wk/c3c6c3708e14d0200aae630da346770d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{pkgs, ... }: | |
with builtins; | |
let | |
# import some plugins | |
org-build = import ../../../nix-hm-org-build { config=config; pkgs=pkgs; lib=lib; }; | |
org-export = import ../../nix-hm-org-export { config=config; pkgs=pkgs; lib=lib; }; | |
# get some values ready | |
username = "dustinlacewell"; | |
reponame = "emacs.d"; | |
token = getEnv "EMACS_D_GITHUB_TOKEN"; | |
# export init.org to Github Pages | |
export = org-export.export { | |
infile = ./init.org; | |
giturl = "https://${username}:${token}@github.com/${username}/${reponame}.git"; | |
}; | |
in { | |
# 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