From f6cf9bea4125ce0501c72374fa4ed82dc03d3147 Mon Sep 17 00:00:00 2001 From: schererleander Date: Sun, 11 May 2025 16:48:04 +0200 Subject: chore, formatting --- modules/emacs.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/emacs.nix') diff --git a/modules/emacs.nix b/modules/emacs.nix index 47192a4..661e065 100644 --- a/modules/emacs.nix +++ b/modules/emacs.nix @@ -1,13 +1,11 @@ { config, lib, pkgs, ... }: -let - cfg = config.emacs; -in { +{ options.emacs.enable = lib.mkEnableOption "Enable emacs and setup"; - config = lib.mkIf cfg.enable { + config = lib.mkIf config.emacs.enable { programs.emacs = { enable = true; package = pkgs.emacs; }; }; -} +} \ No newline at end of file -- cgit v1.3.1