add doom-emacs
This commit is contained in:
parent
2d34226036
commit
4c8e42ee1c
10 changed files with 565 additions and 16 deletions
22
home/modules/emacs/default.nix
Normal file
22
home/modules/emacs/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ nix-doom-emacs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.dadada.home.emacs;
|
||||
in
|
||||
{
|
||||
imports = [ nix-doom-emacs.hmModule ];
|
||||
options.dadada.home.emacs = {
|
||||
enable = mkEnableOption "Enable dadada emacs config";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.doom-emacs = {
|
||||
enable = true;
|
||||
doomPrivateDir = ./doom.d;
|
||||
};
|
||||
services.emacs = {
|
||||
enable = true;
|
||||
socketActivation.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue