Created
October 15, 2017 04:09
-
-
Save dustinlacewell-wk/02e51af413cd772e82416b6f1f51eaaf 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
{ config, pkgs, lib, ... }: | |
with builtins; | |
let | |
filename = "init.el"; | |
buildCommand = ''mkdir -p $out; emacs -Q --script "assets/org-build.el" -f make-init-el > $out/init.el''; | |
buildEnv = { buildInputs = [pkgs.emacs25-nox]; }; | |
buildPath = (pkgs.runCommand "init" buildEnv buildCommand).outPath; | |
in { | |
programs.emacs = { | |
enable = true; | |
package = pkgs.emacsMacport; | |
extraPackages = epkgs: [ | |
epkgs.badger-theme | |
]; | |
}; | |
home.file.".emacs.d/init.el".text = readFile "${buildPath}/init.el"; | |
} |
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
. | |
├── assets | |
│ ├── org-build.el | |
│ ├── org-export.el | |
│ └── style.css | |
├── default.nix | |
└── init.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment