about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-13 15:09:00 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-13 15:09:00 -0800
commita5f8200954567e82b9cfb4a699f418b0a0e4dbf5 (patch)
tree81a5cb7c7b116fb0e6a767677682d1781683a477
parentalacritty: switch back to white background (diff)
downloadworld-a5f8200954567e82b9cfb4a699f418b0a0e4dbf5.tar.gz
emacs: pull community's overlay
We need the community overlay to get the pure GTK port of Emacs for now.
Diffstat (limited to '')
-rw-r--r--flake.nix2
-rw-r--r--lib/default.nix1
-rw-r--r--users/fcuny/desktop/emacs.nix9
3 files changed, 6 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index b8952c9..a0b2c96 100644
--- a/flake.nix
+++ b/flake.nix
@@ -10,6 +10,8 @@
     # We use the unstable nixpkgs repo for some packages.
     nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
 
+    emacs-overlay.url = "github:nix-community/emacs-overlay";
+
     home-manager = {
       url = "github:nix-community/home-manager/release-21.11";
       # We want home-manager to use the same set of nixpkgs as our system.
diff --git a/lib/default.nix b/lib/default.nix
index fbb9bb7..cb8616e 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -45,6 +45,7 @@
         {
           nixpkgs = {
             config.allowUnfree = true;
+            overlays = [ inputs.emacs-overlay.overlay ];
           };
           programs = {
             home-manager.enable = true;
diff --git a/users/fcuny/desktop/emacs.nix b/users/fcuny/desktop/emacs.nix
index 4a50838..67cf61c 100644
--- a/users/fcuny/desktop/emacs.nix
+++ b/users/fcuny/desktop/emacs.nix
@@ -1,10 +1,7 @@
 { lib, config, pkgs, ... }:
 
 {
-  programs = {
-    emacs= {
-      enable = true;
-      package=unstable.emacsPgtkGcc;
-    };
-  };
+  home.packages = with pkgs; [
+    emacsPgtkGcc
+  ];
 }