Commit graph

15 commits

Author SHA1 Message Date
Marien Zwart
6c260297ee
Rename package.nix to doom.nix 2024-03-31 15:39:43 +11:00
Marien Zwart
1d571bb2d6
Store full user DOOMDIR
I was hoping to avoid this but it does not seem practical: I'm pretty
sure I need the user module in the store to override its packages.el,
and Doom does not separate the user module and doom-user-dir.
2024-03-30 23:59:56 +11:00
Marien Zwart
c1a9df33d4
Use Doom profile loader to load our profile
This seems like a relatively sane way of loading our profile from the
Nix store. The alternatives I see are patching Doom (which I'm trying to
avoid) or setting DOOMLOCALDIR. If we set DOOMLOCALDIR, Doom sets enough
variables based on it it would be a pain to clean them up after we gain
control.

Using the profile loader lets us set doom-profile-data-dir early, which
currently only contains the profile and env file.
2024-03-29 22:54:58 +11:00
Marien Zwart
5a8220ab09
Improve TODO 2024-03-29 22:48:03 +11:00
Marien Zwart
634be49049
Write a Doom profile 2024-03-26 22:28:43 +11:00
Marien Zwart
86736935b8
Drop obsolete todo 2024-03-24 15:54:36 +11:00
Marien Zwart
e9661a1484
Override version to avoid spurious rebuilds
I haven't fully confirmed this is sufficient to avoid rebuilds, but I
did confirm for a few packages the version no longer appears in that
package's derivation (which should be sufficient).
2024-03-24 15:41:33 +11:00
Marien Zwart
69694ecde6
Make pin requirement for generated builds explicit
We were already setting `commit` to `p.pin` unconditionally, so the
requirement is not new. Add an assert because this can be triggered from
a user packages.el.
2024-03-24 15:38:29 +11:00
Marien Zwart
ccdf56b235
Drop double-negation (trivial) 2024-03-24 15:36:08 +11:00
Marien Zwart
a9e5dbe1a3
nix flake update
Drop url overrides no longer needed because Doom now points at
emacsmirror.

The URL overrides weren't breaking things, because emacsmirror mirrors
these repositories unmodified (the commit Doom pins is present in both).
2024-03-05 22:46:15 +11:00
Marien Zwart
c50ceed902
Fix :files handling
Exposes what I think is a pre-existing problem with too many directories
getting added to load-path, because we now install a directory
containing a file named "default" that was previously omitted.
2024-03-05 22:23:40 +11:00
Marien Zwart
ad3ddef70b
Switch to melpaBuild for generated packages
trivialBuild results in files installed directly into site-lisp/,
without package metadata. This breaks ELPA packages whose dependencies
we've replaced: package.el refuses to activate the ELPA package because
as far as it knows its dependency is not installed.

melpaBuild seems the easiest way of generating an activatable package
that works with packages we leave untouched.
2024-03-04 19:19:51 +11:00
Marien Zwart
30d97cd4bd
Add TODO 2024-03-04 16:05:22 +11:00
Marien Zwart
f2858f01a0
Split custom elisp packages to their own file 2024-03-04 15:18:20 +11:00
Marien Zwart
47e1bba41e
Snapshot: all dependencies for doom-full build
They don't all work, and the actual Doom integration isn't there yet...
2024-03-04 01:29:47 +11:00