nichts/modules/gui/emacs/emacs.nix

24 lines
514 B
Nix
Raw Normal View History

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