diff --git a/emacs/emacs.nix b/emacs/emacs.nix new file mode 100644 index 0000000..deef0eb --- /dev/null +++ b/emacs/emacs.nix @@ -0,0 +1,13 @@ +{ lib, pkgs, config, ... }: +{ + programs.emacs = + let + emacsPath = ../emacs; + in { + enable = true; + extraConfig = " + (add-to-list 'load-path' \"${emacsPath}\") + (load \"beluga-mode.el\") + "; + }; +} diff --git a/home.nix b/home.nix index 4fa15c6..775d5d1 100644 --- a/home.nix +++ b/home.nix @@ -3,6 +3,7 @@ { imports = [ ./sway/sway.nix + ./emacs/emacs.nix ]; home.username = "nat"; @@ -43,19 +44,6 @@ }; }; - - programs.emacs = - let - emacsPath = ./emacs; - in { - enable = true; - extraConfig = " - (add-to-list 'load-path' \"${emacsPath}\") - (load \"beluga-mode.el\") - "; - }; - - home.sessionVariables = { EDITOR = "kak"; };