about summary refs log tree commit diff
diff options
context:
space:
mode:
-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
+  ];
 }