Commit graph

28 commits

Author SHA1 Message Date
Marien Zwart
bc808de7fc
Add basic end-to-end test 2024-05-17 21:03:24 +10:00
Marien Zwart
ebc03f12fe
Add comment about getting nixpkgs through registry 2024-05-12 20:40:49 +10:00
Marien Zwart
78eb3559a9
Move most "packages" to checks
Neither "minimal" nor "full" were particularly useful packages.

Add an emacsWithDoom check while I'm there.
2024-05-11 21:09:54 +10:00
Marien Zwart
fe4b632478
Refactor flake / home-manager common code
Avoids having the emacs-overlay hack in two places.
2024-05-11 20:35:42 +10:00
Marien Zwart
f65aa4a718
Remove stale comment 2024-05-11 20:16:45 +10:00
Marien Zwart
e0db277665
Clean up repetitive code 2024-05-07 23:24:37 +10:00
Marien Zwart
2cc2bdaf63
Fix excessively long lines
This keeps nix code within 100 columns except for one string in a
comment.
2024-05-07 23:19:43 +10:00
Marien Zwart
c12417c362
Rename doom.nix to default.nix 2024-05-07 23:02:59 +10:00
Marien Zwart
a435bdc848
Use nix-systems
Not hugely important because it only affects our packages, not overlay
or home-manager module, but might as well.
2024-05-07 22:58:41 +10:00
Marien Zwart
0d1f14d15a
Disable nixpkgs inputs of doom-overlay
They should be unused as all we're using is the overlay. Let's make that
explicit.
2024-05-07 22:36:33 +10:00
Marien Zwart
c8b82d46ba
Use emacs-overlay directly, not as overlay
Slight hack to avoid instantiating an additional nixpkgs unnecessarily.
2024-05-04 22:48:11 +10:00
Marien Zwart
b3ed7ea627
Add a Home Manager module
It turns out using Home Manager's `programs.emacs` module does not work
correctly. Document that in HACKING.md for future reference.
2024-04-29 15:46:13 +10:00
Marien Zwart
87267ca824
Make profile loader optional
Not heavily tested, but seems to work.
2024-04-28 18:59:38 +10:00
Marien Zwart
5049ed0665
Clarify Emacs version requirement
And stop forcing pgtk for the example packages.
2024-04-28 16:54:00 +10:00
Marien Zwart
727bcf40e4
Add LICENSE (and license headers) 2024-04-28 12:26:05 +10:00
Marien Zwart
d9aad25bec
Add emacsWithDoom to overlay 2024-04-27 16:14:28 +10:00
Marien Zwart
1399755050
Require init.el exists
Although a completely empty DOOMDIR seems to work (at least for build
purposes), I doubt Doom actually supports this. And it requires some
extra checks on our side as well.

Just check in a trivial DOOMDIR and use that instead.
2024-04-27 14:53:17 +10:00
Marien Zwart
f150fe6c89
Expose doomEmacs as an overlay
Exposing it as a package was (at least according to `nix flake check`)
incorrect.

This means we now use the user's nixpkgs's `pkgs.callPackage` instead of
our own, but I think that's ok.
2024-04-25 23:27:49 +10:00
Marien Zwart
8a36d1e188
Set doom-local-dir
Although not used much with doomProfile set, the default (.local in the
Doom source tree) will not work.

Currently straight-base-dir ends up relative to this, although that may
change.
2024-04-08 21:43:54 +10:00
Marien Zwart
0719e304b4
Make doomDir mandatory but possibly empty
Having this empty only really makes sense for minimal/full test builds.

Also, /var/empty was not doing what it looks like (it's not accessible
from inside the build sandbox). Use nixpkgs's emptyDirectory instead.
2024-04-07 14:12:53 +10:00
Marien Zwart
68aa201f9b
Supply doomSource 2024-04-06 23:52:19 +11:00
Marien Zwart
03769febeb
Drop flake-parts
It's not really doing much for me, and it might be getting in the way of
my attempt at exposing a non-package in the `packages` flake output.
2024-04-06 23:41:35 +11:00
Marien Zwart
dbeda09006
First cut at making it usable from flakes 2024-04-06 22:48:59 +11:00
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
e4ab09ecc6
Add example (based on my own config) 2024-03-18 21:02:41 +11:00
Marien Zwart
a01e4a7964
Make emacs-overlay follow our nixpkgs, update deps 2024-03-18 20:52:48 +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