Skip to content

Instantly share code, notes, and snippets.

@confususs
Last active October 29, 2019 10:12
Show Gist options
  • Save confususs/1a31a04845004ee8bed4fd8f2650eee9 to your computer and use it in GitHub Desktop.
Save confususs/1a31a04845004ee8bed4fd8f2650eee9 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
arandr
spotify
oh-my-zsh
transmission
steam
peek
xclip
pavucontrol
zsh
binutils
filezilla
gdb
lsof
fzf
bat
ripgrep
];
programs.git = {
enable = true;
userName = "confusus";
userEmail = "ardtimmerman@gmail.com";
iniContent.push.default = "current";
iniContent.pull.rebase = "true";
iniContent.merge.ff = "no";
iniContent.ui.color = "auto"; # http://skybert.net/emacs/resolving-merge-conflicts-in-emacs/
iniContent.merge.conflictstyle = "diff3";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.direnv.enable = true;
programs.neovim = {
enable = true;
vimAlias = true;
configure = {
customRC = builtins.readFile ./init.vim;
vam.knownPlugins = pkgs.vimPlugins;
vam.pluginDictionaries = let
names = [
"ale"
#"coc-css"
#"coc-python"
#"coc-prettier"
#"coc-html"
#"coc-json"
#"coc-tslint"
#"coc-tsserver"
#"coc-vetur"
"coc-nvim"
"fzf-vim"
"gruvbox"
"vim-airline"
"vim-airline-themes"
"vim-bufferline"
"vim-commentary"
"editorconfig-vim"
"vim-nix"
"vim-css-color"
"vim-javascript"
"yats-vim"
"typescript-vim"
];
in map (name: { inherit name; }) names;
};
};
programs.zsh = {
enable = true;
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "spaceship";
custom = "\$HOME/.config/oh-my-zsh/custom";
};
};
programs.alacritty.enable = true;
xdg = {
enable = true;
configFile."oh-my-zsh/custom/themes/spaceship.zsh-theme".source =
let
theme = pkgs.fetchFromGitHub {
owner = "denysdovhan";
repo = "spaceship-prompt";
rev = "9ac9d76b35b15f19f99e6b133780cd1c6b67a4c7";
sha256 = "0i8b2x5pnaydmck1daih243f74s1rrm8w9asakkkhbmbphw1wy93";
};
in "${theme}/spaceship.zsh";
};
nixpkgs.config.allowUnfree = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment