aboutsummaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-02-05 22:30:04 -0500
committertdback <tyler@tdback.net>2025-02-05 22:30:04 -0500
commitb4d57a9532cf947b14236ef9aac07f9353a0aec2 (patch)
treeaeed76ca83496bd8ee3258fdae3e40d279c44beb /users
parent636920245bc3ca67813c0214eb749112b354e2e5 (diff)
users/tdback: include emacs module
Diffstat (limited to 'users')
-rw-r--r--users/tdback/desktop.nix1
-rw-r--r--users/tdback/modules/emacs/default.nix30
2 files changed, 31 insertions, 0 deletions
diff --git a/users/tdback/desktop.nix b/users/tdback/desktop.nix
index c117e2f..20e8cd0 100644
--- a/users/tdback/desktop.nix
+++ b/users/tdback/desktop.nix
@@ -34,6 +34,7 @@ in
imports = [
./modules/alacritty
./modules/dunst
+ ./modules/emacs
./modules/email
./modules/firefox
./modules/mpd
diff --git a/users/tdback/modules/emacs/default.nix b/users/tdback/modules/emacs/default.nix
new file mode 100644
index 0000000..7210f07
--- /dev/null
+++ b/users/tdback/modules/emacs/default.nix
@@ -0,0 +1,30 @@
+{
+ 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 dictionaries for spell checking.
+ home.packages = with pkgs.unstable; [
+ enchant
+ hunspellDicts.en-us-large
+ ];
+}