dotfiles/nix-conf/home/includes/common.nix

104 lines
1.9 KiB
Nix

{ config, pkgs, ... }:
let
hcr = pkgs.callPackage ./scripts/hm-changes-report.nix { inherit config pkgs; };
scr = pkgs.callPackage ./scripts/system-changes-report.nix { inherit config pkgs; };
in
{
imports = [
./zsh.nix
];
home.packages = with pkgs; [
hcr
scr
aspell
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
bat
bat-extras.batdiff
bat-extras.batgrep
bat-extras.batman
bat-extras.batwatch
#bat-extras.batpipe # wait for 22.11
bottom
broot
curl
difftastic
duf
du-dust
elinks
entr
exa
fd
fzf
git
gnupg
gopass
ispell
isync
jq
lscolors
lsd
lynx
nixfmt
nix-info
nix-prefetch-git
nix-prefetch-github
nvd
pinentry
pass
libqalculate
ripgrep
rlwrap
sd
tealdeer
ugrep
w3m
];
programs.gpg.enable = true;
programs.nix-index = {
enable = true;
enableZshIntegration = false;
enableBashIntegration = false;
};
programs.vim = {
enable = true;
extraConfig = ''
" molokayo doesn't load properly without this"
colorscheme molokai
colorscheme molokayo
" highlight doesn't work properly without this"
syntax enable
highlight Normal ctermfg=white ctermbg=black
set hlsearch
set showmatch
'';
plugins = [ pkgs.vimPlugins.sensible
pkgs.vimPlugins.auto-pairs
pkgs.vimPlugins.awesome-vim-colorschemes
pkgs.vimPlugins.ctrlp
pkgs.vimPlugins.inkpot
pkgs.vimPlugins.surround
pkgs.vimPlugins.vim-lastplace
pkgs.vimPlugins.vim-pasta
pkgs.vimPlugins.vim-sleuth
];
settings = {
background = "dark";
copyindent = true;
expandtab = true;
ignorecase = true;
number = true;
shiftwidth = 4;
smartcase = true;
tabstop = 4;
};
};
}