Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created October 18, 2017 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinlacewell-wk/9cd4b17756cc2b7f9f0cb321f46d0466 to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/9cd4b17756cc2b7f9f0cb321f46d0466 to your computer and use it in GitHub Desktop.
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