1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/modules/emacs.nix
Stefan Ellmauthaler 7dccffc415 Define Overlays to use ExportPackage of flake utils plus
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
2023-10-02 16:27:59 +02:00

17 lines
313 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; {
options.elss.programs.emacs.enable = mkEnableOption "Setup emacs package and install it";
config = mkIf config.elss.programs.emacs.enable {
services.emacs = {
enable = true;
defaultEditor = true;
package = pkgs.emacsPackage;
};
};
}