diff options
| author | bee <beebeeb5k@gmail.com> | 2026-05-01 23:45:21 +0530 |
|---|---|---|
| committer | bee <beebeeb5k@gmail.com> | 2026-05-01 23:45:21 +0530 |
| commit | cd08309515bce3796777f4b20efffd379b9fabcc (patch) | |
| tree | 9bc843dc067983511b31139b5c71afdd12a8e20e /common/modules/emacs/default.nix | |
| parent | 1bb49481dbec223e68df4f60fa1d425525e16cff (diff) | |
Homecoming
Diffstat (limited to 'common/modules/emacs/default.nix')
| -rw-r--r-- | common/modules/emacs/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/modules/emacs/default.nix b/common/modules/emacs/default.nix new file mode 100644 index 0000000..4566f57 --- /dev/null +++ b/common/modules/emacs/default.nix @@ -0,0 +1,33 @@ +{ + homeManager, + inputs, + moduleNameSpace, + ... +}: +{ + pkgs, + config, + lib, + ... +}: +let + cfg = config.${moduleNameSpace}.emacs; +in +{ + imports = lib.optionals homeManager [ + inputs.nix-doom-emacs-unstraightened.homeModule + ]; + + options.${moduleNameSpace}.emacs = { + enable = lib.mkEnableOption "Enable emacs"; + }; + + config = lib.mkIf cfg.enable ( + lib.optionalAttrs homeManager { + programs.doom-emacs = { + enable = true; + doomDir = ./doom; # or e.g. `./doom.d` for a local configuration + }; + } + ); +} |
