From 2dad7cf1a9e79fee2d391ee771b85b677bba8676 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Mon, 13 Mar 2023 13:34:07 +0100 Subject: home: emacs: remove dependencies from home.packages --- modules/home-manager/personal/programs/emacs.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'modules/home-manager/personal/programs') diff --git a/modules/home-manager/personal/programs/emacs.nix b/modules/home-manager/personal/programs/emacs.nix index 2e01c3b..ac87ef6 100644 --- a/modules/home-manager/personal/programs/emacs.nix +++ b/modules/home-manager/personal/programs/emacs.nix @@ -29,11 +29,6 @@ in { home.sessionVariables.EDITOR = "emacsclient --tty"; home.shellAliases.editor = "emacsclient --create-frame"; - # add some packages necessary in spacemacs - programs.emacs.extraPackages = - lib.mkDefault (ep: with ep; [ emacsql-sqlite emacsql-sqlite-builtin ]); - home.packages = with pkgs; [ gnutar source-code-pro ]; - # spacemacs dotfile home.file.".spacemacs.d/init.el".source = lib.mkDefault config.personal.home.dotfiles.spacemacs; @@ -55,6 +50,9 @@ in { OnCalendar = "daily"; }; Install = { WantedBy = [ "default.target" ]; }; - }); + }) // { + services.emacs.Service.Environment = with pkgs; + [ "PATH=${gnutar}/bin:${gcc}/bin:$PATH" ]; + }; }; } -- cgit v1.2.3