Add emacs module to install emacs

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 400742f8a9
commit dbd049be70
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 28 additions and 0 deletions

View file

@ -50,6 +50,7 @@
wshowkeys.enable = true;
obs.enable = true;
garage.enable = true;
emacs.enable = true;
};
};

View file

@ -0,0 +1,27 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.youthlic.programs.emacs;
in {
options = {
youthlic.programs.emacs = {
enable = lib.mkEnableOption "emacs";
};
};
config = lib.mkIf cfg.enable {
services.emacs = {
enable = true;
install = true;
package = with pkgs;
(emacsPackagesFor emacs-pgtk).emacsWithPackages (p:
with p; [
vterm
evil
gruvbox-theme
]);
};
};
}