mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +01:00
20 lines
365 B
Nix
20 lines
365 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
cfg = config.luj.programs.emacs;
|
|
in
|
|
with lib;
|
|
{
|
|
options.luj.programs.emacs = {
|
|
enable = mkEnableOption "Enable Emacs";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.emacs.enable = true;
|
|
programs.doom-emacs = {
|
|
enable = true;
|
|
doomPrivateDir = ./doom.d;
|
|
emacsPackage = pkgs.emacs29-pgtk;
|
|
};
|
|
};
|
|
}
|