Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created October 18, 2017 18:56
Show Gist options
  • Save dustinlacewell-wk/c3c6c3708e14d0200aae630da346770d to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/c3c6c3708e14d0200aae630da346770d to your computer and use it in GitHub Desktop.
{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