dotfiles/hosts/_common/programs.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

2023-01-02 16:56:47 +00:00
{ pkgs, ... }:
{
programs.home-manager.enable = true;
programs.tmux = {
enable = true;
};
2023-01-02 17:07:42 +00:00
programs.zsh.prezto = {
enable = true;
};
2023-01-02 16:56:47 +00:00
programs.git = {
enable = true;
includes = [
{ path = "~/code/tyrel.dev/dotfiles/home/gitconfig"; }
];
aliases = {
ap = "add -p";
};
extraConfig = {
pull.ff = "only";
};
};
programs.neovim = {
enable = true;
2023-01-02 18:04:19 +00:00
plugins = with pkgs.vimPlugins; [
# Inject tree-sitters, since they're annoying to maintain with sideloading
(nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars))
];
2023-01-02 20:15:50 +00:00
# We used to manage our own init.lua but now we want the home-manager
# managed init.vim to load our init.lua which makes this a little dirty.
extraConfig = ''
lua << EOF
${builtins.readFile ../../home/config/nvim/init.lua}
EOF
'';
2023-01-02 16:56:47 +00:00
};
2023-01-02 18:21:42 +00:00
programs.fish = {
enable = true;
2023-01-02 21:41:06 +00:00
plugins = with pkgs.fishPlugins; [
{
name = "fish-ssh-agent";
src = pkgs.fetchFromGitHub {
owner = "danhper";
repo = "fish-ssh-agent";
rev = "fd70a2afdd03caf9bf609746bf6b993b9e83be57";
sha256 = "e94Sd1GSUAxwLVVo5yR6msq0jZLOn2m+JZJ6mvwQdLs=";
};
}
];
2023-01-02 18:21:42 +00:00
};
2023-01-02 21:41:06 +00:00
2023-01-02 18:21:42 +00:00
2023-01-02 16:56:47 +00:00
programs.htop = {
enable = true;
};
}