Add ripgrep and emacs

This commit is contained in:
Smaug123
2021-08-29 23:52:22 +01:00
parent 2a8b33a30b
commit cc653f460d
2 changed files with 33 additions and 0 deletions

View File

@@ -166,6 +166,13 @@ let
};
in
let
my-python-packages = python-packages: [
];
python = pkgs.python3.withPackages my-python-packages;
in
{
imports = [ <home-manager/nix-darwin> ];
@@ -181,8 +188,15 @@ in
pkgs.alacritty
pkgs.keepassxc
vscode-with-extensions
python
];
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
}))
];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"vscode"
"vscode-with-extensions"

View File

@@ -1,6 +1,7 @@
{ config, pkgs, ... }:
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
@@ -34,8 +35,14 @@
pkgs.elan
pkgs.protonmail-bridge
pkgs.handbrake
pkgs.ripgrep
];
programs.emacs = {
enable = true;
package = pkgs.emacsGcc;
};
programs.tmux = {
shell = "\${pkgs.zsh}/bin/zsh";
};
@@ -116,4 +123,16 @@ let g:syntastic_check_on_wq = 0''; }
programs.neovim.extraConfig = builtins.readFile ./init.vim;
home.file.".config/youtube-dl/config".source = ./youtube-dl.conf;
home.file.".emacs.d" = {
# don't make the directory read only so that impure melpa can still happen
# for now
recursive = true;
source = pkgs.fetchFromGitHub {
owner = "syl20bnr";
repo = "spacemacs";
rev = "59852a6ab52911ac76bb22aa8642ccef48238349";
sha256 = "0m634adqnwqvi8d7qkq7nh8ivfz6cx90idvwd2wiylg4w1hly252";
};
};
}