dotfiles/home.nix
2022-01-28 22:45:50 +01:00

86 lines
1.7 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
glow
gvproxy
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 '\nRunning TSUpdateSync ... '
nvim -c 'try | execute "TSUpdateSync" | 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;
};
}