nixos/modules/dev/editors/emacs/default.nix

29 lines
575 B
Nix
Raw Normal View History

2023-09-04 12:59:43 +04:00
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.editors.emacs;
in
{
options.modules.dev.editors.emacs = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
# bro
direnv
# oh my days
emacs
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; [
emacs-all-the-icons-fonts
2023-09-05 18:01:45 +04:00
material-design-icons
2023-09-05 13:41:34 +04:00
];
2023-09-04 12:59:43 +04:00
};
}