Use emacsUnstable (27)

also doing this in home rather than system
This commit is contained in:
Griffin Smith 2020-05-11 11:15:10 -04:00
parent 765e7b5cc6
commit 3e8f0eeeec
3 changed files with 15 additions and 43 deletions

View file

@ -29,10 +29,24 @@ in {
ispell ispell
ripgrep
coreutils
fd
clang
gnutls gnutls
]; ];
programs.emacs.enable = true; nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = "https://github.com/nix-community/emacs-overlay/archive/54afb061bdd12c61bbfcc13bad98b7a3aab7d8d3.tar.gz";
sha256 = "0hrbg65d5h0cb0nky7a46md7vlvhajq1hf0328l2f7ln9hznqz6j";
}))
];
programs.emacs = {
enable = true;
package = pkgs.emacsUnstable;
};
impure.clonedRepos = { impure.clonedRepos = {
orgClubhouse = { orgClubhouse = {

View file

@ -5,7 +5,6 @@
[ [
./xserver.nix ./xserver.nix
./fonts.nix ./fonts.nix
./emacs.nix
./sound.nix ./sound.nix
./kernel.nix ./kernel.nix
/home/grfn/code/urb/urbos/system /home/grfn/code/urb/urbos/system

View file

@ -1,41 +0,0 @@
{ config, pkgs, lib, ... }:
with lib;
{
options = {
programs.emacs.useGit = mkOption {
description = "Use emacs from git";
type = types.bool;
default = false;
};
programs.emacs.useUnstable = mkOption {
description = "Use emacs unstable";
type = types.bool;
default = false;
};
};
config = {
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = "https://github.com/nix-community/emacs-overlay/archive/54afb061bdd12c61bbfcc13bad98b7a3aab7d8d3.tar.gz";
sha256 = "0hrbg65d5h0cb0nky7a46md7vlvhajq1hf0328l2f7ln9hznqz6j";
}))
];
environment.systemPackages = with pkgs; [
(if config.programs.emacs.useGit
then emacsGit
else
if config.programs.emacs.useUnstable
then emacsUnstable
else emacs)
ripgrep
coreutils
fd
clang
];
programs.emacs.useUnstable = true;
};
}