Skip to content

Instantly share code, notes, and snippets.

@jonniesweb
Created May 23, 2020 16:35
Show Gist options
  • Save jonniesweb/4b10379caf90f6c44e3a25b8b1f81b3f to your computer and use it in GitHub Desktop.
Save jonniesweb/4b10379caf90f6c44e3a25b8b1f81b3f to your computer and use it in GitHub Desktop.
An example home-manager configuration
{ config, pkgs, ... }:
{
programs.home-manager.enable = true;
programs.bat.enable = true;
programs.fzf.enable = true;
programs.fzf.enableZshIntegration = true;
home.packages = with pkgs; [
entr
fd
htop
# ...
];
programs.zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
defaultKeymap = "emacs";
history.extended = true;
initExtra = ''
${builtins.readFile ./home/post-compinit.zsh}
${builtins.readFile ./home/shell-aliases.zsh}
'';
sessionVariables = rec {
EDITOR = "vim";
};
plugins = [
{
name = "zsh-autosuggestions";
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-autosuggestions";
rev = "v0.6.3";
sha256 = "1h8h2mz9wpjpymgl2p7pc146c1jgb3dggpvzwm9ln3in336wl95c";
};
}
];
};
programs.neovim = {
enable = true;
vimAlias = true;
extraConfig = builtins.readFile ./home/extraConfig.vim;
plugins = with pkgs.vimPlugins; [
auto-pairs
fzf-vim
lightline-vim
# ...
];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment