Simplify emacs configuation to make stable/unstable use easier
Alan Pearce alan@alanpearce.eu
Thu, 12 Jul 2018 15:47:27 +0200
2 files changed, 9 insertions(+), 12 deletions(-)
M modules/user-interface.nix → modules/user-interface.nix
@@ -2,13 +2,7 @@ { config, pkgs, lib, ... }: let emacsPackage = import ../packages/emacs.nix { - inherit (pkgs) stdenv; - inherit pkgs; - emacs = pkgs.lib.overrideDerivation (pkgs.emacs) (attrs: { - postInstall = attrs.postInstall + '' - rm $out/share/applications/emacs.desktop - ''; - }); + pkgs = pkgs.unstable; }; in { programs.browserpass.enable = true;
M packages/emacs.nix → packages/emacs.nix
@@ -1,14 +1,17 @@ { - pkgs, - emacs ? pkgs.emacs, - stdenv + pkgs ? import <nixpkgs> }: let - myEmacs = emacs; + myEmacs = pkgs.lib.overrideDerivation (pkgs.emacs) (attrs: { + postInstall = attrs.postInstall + '' + rm $out/share/applications/emacs.desktop + ''; + }); + emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages; in - emacsWithPackages (epkgs: (with epkgs.melpaPackages; [ + emacsWithPackages (epkgs: (with epkgs; [ ace-link add-node-modules-path ag