From 1eb55b1642a209feb1b8a245edabe3361c62cb5d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 9 Sep 2017 16:16:49 +0200 Subject: user-interface: Import Emacs setup --- modules/user-interface.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'modules') diff --git a/modules/user-interface.nix b/modules/user-interface.nix index ef05abbf..9d216d50 100644 --- a/modules/user-interface.nix +++ b/modules/user-interface.nix @@ -1,5 +1,9 @@ { config, pkgs, ... }: +let + pkgsUnstable = import {}; + # pkgsUnstable = pkgs; +in { # programs.browserpass.enable = true; programs.info.enable = true; @@ -30,6 +34,23 @@ services.devmon.enable = true; + services.emacs = { + enable = true; + defaultEditor = true; + package = import ./emacs.nix { + inherit (pkgs) stdenv; + pkgs = pkgsUnstable; + emacs = pkgs.lib.overrideDerivation (pkgs.emacs.override { + withGTK2 = false; + withGTK3 = true; + }) (attrs: { + postInstall = attrs.postInstall + '' + rm $out/share/applications/emacs.desktop + ''; + }); + }; + }; + services.redshift = { enable = true; temperature = { -- cgit 1.4.1