From a68f69c2e03f66ee0dd4fc38102a34c296d12a7b Mon Sep 17 00:00:00 2001 From: Madeleine Sydney Date: Thu, 10 Apr 2025 23:49:27 -0600 Subject: [PATCH] refactor(emacs): Update Nix module snippet --- modules/home/users/crumb/emacs/snippets/nix-mode/__module | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/home/users/crumb/emacs/snippets/nix-mode/__module b/modules/home/users/crumb/emacs/snippets/nix-mode/__module index d53a81e..e7be9c3 100644 --- a/modules/home/users/crumb/emacs/snippets/nix-mode/__module +++ b/modules/home/users/crumb/emacs/snippets/nix-mode/__module @@ -7,15 +7,13 @@ # -- { config, lib, pkgs, ... }: -with lib; - let cfg = config.${1:`this-current-file-name`}; in { options.$1 = { - enable = mkEnableOption "$2"; + enable = lib.mkEnableOption "$2"; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { $3 }; } \ No newline at end of file