Add emacs module to install emacs
This commit is contained in:
parent
400742f8a9
commit
dbd049be70
2 changed files with 28 additions and 0 deletions
|
|
@ -50,6 +50,7 @@
|
|||
wshowkeys.enable = true;
|
||||
obs.enable = true;
|
||||
garage.enable = true;
|
||||
emacs.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
27
nixos/modules/programs/emacs.nix
Normal file
27
nixos/modules/programs/emacs.nix
Normal 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
|
||||
]);
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue