Fix emacs
This commit is contained in:
parent
eea9e47197
commit
bcae4ff2c9
1 changed files with 13 additions and 12 deletions
|
|
@ -2,16 +2,7 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
with lib.my;
|
with lib.my;
|
||||||
let
|
let cfg = config.modules.editor.emacs;
|
||||||
cfg = config.modules.editor.emacs;
|
|
||||||
myEmacs = pkgs.unstable.emacs29.override {
|
|
||||||
withNativeCompilation = true;
|
|
||||||
withSQLite3 = true;
|
|
||||||
withTreeSitter = true;
|
|
||||||
withWebP = true;
|
|
||||||
};
|
|
||||||
myEmacsWithPackages = myEmacs.pkgs.withPackages
|
|
||||||
(epkgs: with epkgs; [ vterm pdf-tools treesit-grammars.with-all-grammars ]);
|
|
||||||
in {
|
in {
|
||||||
options.modules.editor.emacs = { enable = mkBoolOpt false; };
|
options.modules.editor.emacs = { enable = mkBoolOpt false; };
|
||||||
|
|
||||||
|
|
@ -77,13 +68,23 @@ in {
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
client.enable = true;
|
client.enable = true;
|
||||||
package = myEmacsWithPackages;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Use either this or nix-doom-emacs
|
# Use either this or nix-doom-emacs
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = myEmacs;
|
package = pkgs.unstable.emacs29.override {
|
||||||
|
withNativeCompilation = true;
|
||||||
|
withSQLite3 = true;
|
||||||
|
withTreeSitter = true;
|
||||||
|
withWebP = true;
|
||||||
|
};
|
||||||
|
extraPackages = epkgs:
|
||||||
|
with epkgs; [
|
||||||
|
vterm
|
||||||
|
pdf-tools
|
||||||
|
treesit-grammars.with-all-grammars
|
||||||
|
];
|
||||||
};
|
};
|
||||||
xdg.configFile = { "doom" = { source = ./doom.d; }; };
|
xdg.configFile = { "doom" = { source = ./doom.d; }; };
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue