summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
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 = {