Commit Graph

14 Commits

Author SHA1 Message Date
29149d1d79 Merge pull request #267 from thiagokokada/refactor-flake-nix
Refactor flake.nix
2022-11-05 12:31:08 +00:00
76643e2962 fix doomPackageDir in HM module 2022-10-23 19:13:03 +00:00
29dff05b5b Fix indentation in example 2022-10-22 08:43:34 +01:00
5a260a6ca3 Add doomPackageDir argument.
This is a directory used for initializing the straight environment,
distinct from `doomPrivateDir`. If not given, `doomPrivateDir` is used.

Here it is in action:

be9f3a24c5/emacs/default.nix (L12-L34)

Fixes #297 (there are some ideas for extra sugar in that issue, but this
solves the core problem).
2022-10-13 19:49:54 -04:00
814450634e Rename overlay parameters to final: prev: 2022-09-08 21:41:21 +01:00
827fe858bc Fix formatting 2022-09-08 20:36:11 +01:00
9111d480a8 Use --init-directory in Emacs 29+ (#191)
* Use `--init-directory` in Emacs 29+

This will allow a few advantages:
- We can load `early-init.el` file properly, fixing Flash Of Unstyled
Contents (FOUC) issues and improving the performance slightly
- Eventually we can drop `default.el` file loading in Home-Manager
module. Not done here since this would complicate the code without
necessity, however this can be done once Emacs 29+ is default

* Fix build in Emacs <29

* Add #checks.<arch>.init-example-el-emacsGit

* Add .#checks.x86_64-linux.init-example-el-emacsGit to CI

* Fix review issues

* Move config files to share/emacs.d

* Separate tests in two steps

* Add TODOS

* Simplify emacs-dir generation
2022-07-10 20:46:49 +03:00
fee14d217b home-manager: set services.emacs.package only if it is defined
Fixes #263
2021-07-27 17:02:36 +02:00
71a2ea2899 set home-manager emacs service's package 2021-06-29 23:04:23 +02:00
c6b9cccdfd Allow doomPrivateDir to be a /nix/store path
I've been playing around with a custom home-manager module that extends this one that generates `init.el` programmatically. However, I can't use the `doom.d` folder it generates, because `doomPrivateDir` calls `builtins.path` which fails if given a `/nix/store` path.

This PR fixes `doomPrivateDir` to only call `builtins.path` if the given `path` is not already a `/nix/store` path.
2020-12-22 04:01:45 +00:00
3d3d95b13b hmModule: emacsPackagesOverlay option 2020-11-01 09:51:49 +01:00
4ca2366aad hmModule: add emacsPackage option
to make the input emacs derivation overridable.

References: #78
2020-11-01 09:51:49 +01:00
9bebee33af work around #62 2020-11-01 09:51:49 +01:00
dd6819f0e0 wip: flake support 2020-11-01 09:51:49 +01:00