2023-09-04 12:59:43 +04:00
|
|
|
{
|
2023-09-16 11:52:57 +04:00
|
|
|
outputs,
|
|
|
|
options,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.modules.dev.editors.emacs;
|
|
|
|
in {
|
2023-09-04 12:59:43 +04:00
|
|
|
options.modules.dev.editors.emacs = {
|
|
|
|
enable = mkEnableOption false;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2023-10-05 07:37:12 +04:00
|
|
|
# ues daemon
|
2023-10-04 10:15:12 +04:00
|
|
|
services.emacs = {
|
|
|
|
enable = true;
|
2023-10-04 10:24:23 +04:00
|
|
|
install = true;
|
2023-10-04 11:02:57 +04:00
|
|
|
package = pkgs.emacs;
|
2023-10-04 10:15:12 +04:00
|
|
|
};
|
2023-09-04 12:59:43 +04:00
|
|
|
users.users.sako.packages = with pkgs; [
|
2023-10-05 07:37:12 +04:00
|
|
|
# direnv
|
2023-09-04 12:59:43 +04:00
|
|
|
direnv
|
2023-10-05 07:43:04 +04:00
|
|
|
emacsPackages.vterm
|
2023-09-04 12:59:43 +04:00
|
|
|
];
|
|
|
|
home-manager.users.sako.home.file.".emacs.d" = {
|
2023-09-04 13:26:14 +04:00
|
|
|
enable = true;
|
2023-09-04 12:59:43 +04:00
|
|
|
source = ../../../../config/emacs;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-09-05 13:41:34 +04:00
|
|
|
fonts.fonts = with pkgs; [
|
2023-09-16 11:52:57 +04:00
|
|
|
(nerdfonts.override {fonts = ["JetBrainsMono"];})
|
2023-10-05 07:37:12 +04:00
|
|
|
jetbrains-mono
|
2023-09-05 13:41:34 +04:00
|
|
|
];
|
2023-09-04 12:59:43 +04:00
|
|
|
};
|
|
|
|
}
|