summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 16:16:49 +0200
committerAlan Pearce2017-09-09 16:49:30 +0200
commit1eb55b1642a209feb1b8a245edabe3361c62cb5d (patch)
tree1cbfcec489ef53f3b55c12b9d481c602157daea4 /modules
parentf1a49dcee9df5c96ec5c261373c43c6da70701e4 (diff)
downloadnixos-configuration-1eb55b1642a209feb1b8a245edabe3361c62cb5d.tar.lz
nixos-configuration-1eb55b1642a209feb1b8a245edabe3361c62cb5d.tar.zst
nixos-configuration-1eb55b1642a209feb1b8a245edabe3361c62cb5d.zip
user-interface: Import Emacs setup
Diffstat (limited to 'modules')
-rw-r--r--modules/user-interface.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/user-interface.nix b/modules/user-interface.nix
index ef05abb..9d216d5 100644
--- a/modules/user-interface.nix
+++ b/modules/user-interface.nix
@@ -1,5 +1,9 @@
 { config, pkgs, ... }:
 
+let
+  pkgsUnstable = import <nixos-unstable> {};
+  # 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 = {