From 87ed172749c656861a43dbf3640fe58291d8032f Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 15 Mar 2025 14:49:06 -0400 Subject: editor: renamed from emacs module. include all dependencies --- users/tdback/modules/editor/default.nix | 44 +++++++++++++++++++++++++++++++++ users/tdback/modules/emacs/default.nix | 32 ------------------------ 2 files changed, 44 insertions(+), 32 deletions(-) create mode 100644 users/tdback/modules/editor/default.nix delete mode 100644 users/tdback/modules/emacs/default.nix (limited to 'users') diff --git a/users/tdback/modules/editor/default.nix b/users/tdback/modules/editor/default.nix new file mode 100644 index 0000000..0a45011 --- /dev/null +++ b/users/tdback/modules/editor/default.nix @@ -0,0 +1,44 @@ +# users/tdback/modules/editor/default.nix +# +# My primary editor for writing code, checking mail, and doing other emacs-y +# things. +# +# TODO: Use unstable epkgs to get mail working with the standalone binary. + +{ + pkgs, + ... +}: +{ + # Provide emacs and emacsclient. + programs.emacs = { + enable = true; + package = pkgs.unstable.emacs30-gtk3; + extraPackages = + epkgs: with epkgs; [ + jinx # spell-checker + mu4e # mail client + ]; + }; + + # Run emacs as a systemd daemon in graphical environments. + services.emacs = { + enable = true; + package = pkgs.unstable.emacs30-gtk3; + startWithUserSession = "graphical"; + defaultEditor = true; + client.enable = true; + }; + + # Include any package dependencies used in my emacs configuration. + home.packages = with pkgs.unstable; [ + nixd # editing nix code + ripgrep # faster searches + emacsPackages.jinx # spell-checker package + enchant # spell-checker library + hunspellDicts.en-us-large # spell-checker dictionary + hledger # finances + imagemagick # viewing images + mu # mail client + ]; +} diff --git a/users/tdback/modules/emacs/default.nix b/users/tdback/modules/emacs/default.nix deleted file mode 100644 index 6a2690f..0000000 --- a/users/tdback/modules/emacs/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ - pkgs, - ... -}: -{ - # Provide emacs and emacsclient. - programs.emacs = { - enable = true; - package = pkgs.unstable.emacs30-gtk3; - extraPackages = - epkgs: with epkgs; [ - jinx - mu4e - ]; - }; - - # Run emacs as a systemd daemon in graphical environments. - services.emacs = { - enable = true; - package = pkgs.unstable.emacs30-gtk3; - startWithUserSession = "graphical"; - defaultEditor = true; - client.enable = true; - }; - - # Include package libraries and dictionaries for spell checking. - home.packages = with pkgs.unstable; [ - emacsPackages.jinx - enchant - hunspellDicts.en-us-large - ]; -} -- cgit v1.2.3