nichts/modules/gui/emacs/emacs.nix

23 lines
608 B
Nix
Raw Normal View History

2024-05-14 23:47:14 +02:00
{ config, lib, pkgs, inputs, ... }:
2024-04-29 22:18:58 +02:00
with lib; let
cfg = config.modules.programs.emacs;
username = config.modules.other.system.username;
in {
options.modules.programs.emacs.enable = mkEnableOption "emacs";
config = mkIf cfg.enable {
home-manager.users.${username} = {
2024-05-14 23:47:14 +02:00
programs.doom-emacs = {
2024-04-29 22:18:58 +02:00
enable = true;
2024-05-04 01:33:33 +02:00
extraConfig = ''
(setq standard-indent 2)
(require 'evil)
(evil-mode 1)
'';
2024-05-14 23:47:14 +02:00
doomPrivateDir = ./doom.d;
2024-04-29 22:18:58 +02:00
};
};
};
}