From a5f8200954567e82b9cfb4a699f418b0a0e4dbf5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 13 Feb 2022 15:09:00 -0800 Subject: emacs: pull community's overlay We need the community overlay to get the pure GTK port of Emacs for now. --- flake.nix | 2 ++ lib/default.nix | 1 + users/fcuny/desktop/emacs.nix | 9 +++------ 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 + ]; } -- cgit 1.4.1