1
0
Fork 0
dotfiles/home.nix
Daniel Kempkens c9998f927f Fix tree-sitter integration/compilation
... by switching to the precompiled packages
2022-01-20 23:11:19 +01:00

83 lines
1.5 KiB
Nix

{ config, pkgs, lib, ... }:
{
imports = [
./programs/fish.nix
./programs/starship.nix
./programs/direnv.nix
./config/kitty.nix
./programs/nvim
./programs/git.nix
./programs/lazygit.nix
./programs/bat.nix
./programs/jq.nix
./programs/scripts.nix
./config/ssh.nix
./config/yt-dlp.nix
];
home = {
packages = with pkgs; [
aria2
arp-scan
atomicparsley
cachix
cliclick
dogdns
exa
fd
ffmpeg
fzf
gallery-dl
hexyl
hyperfine
nix-prefetch-github
nvd
parallel
podman
procs
qemu
ripgrep
rtmpdump
streamlink
tokei
wget
xz
yt-dlp
];
activation = {
updateAppCaches = lib.hm.dag.entryAfter [ "onFilesChange" "installPackages" "copyFonts" ] ''
# nixpkgs
echo "Calculating new NIX_PATH value ..."
"$HOME/.bin/calculate-nix-path"
# neovim
echo -n 'Removing luacache file: '
rm -f "$HOME/.cache/nvim/luacache"
echo 'Done'
echo -n 'Running LuaCacheClear: '
nvim -c 'try | execute "LuaCacheClear" | echo "Done" | catch /.*/ | echo "Command not found" | endtry | q' --headless
printf '\n'
'';
reportChanges = lib.hm.dag.entryAfter [ "updateAppCaches" ] ''
nvd diff $oldGenPath $newGenPath
'';
};
};
programs = {
home-manager.enable = true;
zoxide.enable = true;
};
}