2023-12-08 21:27:52 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
|
|
|
|
options.components.gui.emacs.enable = mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = config.components.gui.enable;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf (config.components.gui.emacs.enable) {
|
2023-02-17 00:41:22 +01:00
|
|
|
|
|
|
|
home-manager.users.mainUser = {
|
|
|
|
programs.doom-emacs = {
|
|
|
|
enable = lib.mkDefault true;
|
2023-03-18 08:16:25 +01:00
|
|
|
doomPrivateDir = ../../../../doom.d;
|
2023-02-17 00:41:22 +01:00
|
|
|
extraConfig = ''
|
|
|
|
;; "monospace" means use the system default. However, the default is usually two
|
|
|
|
;; points larger than I'd like, so I specify size 12 here.
|
|
|
|
(setq doom-font
|
|
|
|
(font-spec :family "Jetbrains Mono" :size ${toString config.programs.custom.urxvt.fontSize} :weight 'light))
|
|
|
|
;(setq doom-font
|
|
|
|
; (font-spec :family "Terminus" :size ${toString config.programs.custom.urxvt.fontSize} :weight 'light))
|
|
|
|
'';
|
|
|
|
|
2023-12-08 21:27:52 +01:00
|
|
|
#emacsPackagesOverlay = self: super: {
|
|
|
|
# # fixes https://github.com/vlaci/nix-doom-emacs/issues/394
|
|
|
|
# gitignore-mode = pkgs.emacsPackages.git-modes;
|
|
|
|
# gitconfig-mode = pkgs.emacsPackages.git-modes;
|
|
|
|
#};
|
2023-02-17 00:41:22 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.ripgrep
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|