2021-12-13 13:00:48 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2021-12-06 22:35:29 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./programs/fish.nix
|
|
|
|
./programs/starship.nix
|
2022-01-08 17:03:55 +00:00
|
|
|
./programs/direnv.nix
|
2021-12-12 18:19:44 +00:00
|
|
|
./config/kitty.nix
|
2021-12-06 22:35:29 +00:00
|
|
|
|
|
|
|
./programs/nvim
|
|
|
|
|
|
|
|
./programs/git.nix
|
2021-12-19 20:32:38 +00:00
|
|
|
./programs/lazygit.nix
|
2021-12-06 22:35:29 +00:00
|
|
|
|
|
|
|
./programs/bat.nix
|
|
|
|
|
|
|
|
./programs/jq.nix
|
|
|
|
|
2022-01-05 10:34:31 +00:00
|
|
|
./programs/scripts.nix
|
2022-01-05 09:52:59 +00:00
|
|
|
|
2022-01-10 21:41:52 +00:00
|
|
|
./config/ssh.nix
|
|
|
|
|
2022-01-05 10:34:31 +00:00
|
|
|
./config/yt-dlp.nix
|
2021-12-06 22:35:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
home = {
|
|
|
|
packages = with pkgs; [
|
|
|
|
aria2
|
|
|
|
arp-scan
|
|
|
|
atomicparsley
|
|
|
|
cachix
|
2021-12-14 19:34:31 +00:00
|
|
|
cliclick
|
2021-12-06 22:35:29 +00:00
|
|
|
dogdns
|
|
|
|
exa
|
|
|
|
fd
|
|
|
|
ffmpeg
|
|
|
|
fzf
|
|
|
|
gallery-dl
|
2022-01-28 21:45:50 +00:00
|
|
|
glow
|
2022-01-22 23:13:57 +00:00
|
|
|
gvproxy
|
2021-12-06 22:35:29 +00:00
|
|
|
hexyl
|
|
|
|
hyperfine
|
|
|
|
nix-prefetch-github
|
2022-01-12 17:14:36 +00:00
|
|
|
nvd
|
2021-12-06 22:35:29 +00:00
|
|
|
parallel
|
2021-12-28 18:48:27 +00:00
|
|
|
podman
|
2021-12-06 22:35:29 +00:00
|
|
|
procs
|
2021-12-28 18:48:27 +00:00
|
|
|
qemu
|
2021-12-06 22:35:29 +00:00
|
|
|
ripgrep
|
|
|
|
rtmpdump
|
2022-01-05 09:52:59 +00:00
|
|
|
streamlink
|
2021-12-06 22:35:29 +00:00
|
|
|
tokei
|
2021-12-12 23:01:54 +00:00
|
|
|
wget
|
2021-12-28 18:48:27 +00:00
|
|
|
xz
|
2021-12-06 22:35:29 +00:00
|
|
|
yt-dlp
|
|
|
|
];
|
2021-12-13 13:00:48 +00:00
|
|
|
|
|
|
|
activation = {
|
2021-12-19 18:52:09 +00:00
|
|
|
updateAppCaches = lib.hm.dag.entryAfter [ "onFilesChange" "installPackages" "copyFonts" ] ''
|
|
|
|
# nixpkgs
|
|
|
|
echo "Calculating new NIX_PATH value ..."
|
2022-01-05 10:07:09 +00:00
|
|
|
"$HOME/.bin/calculate-nix-path"
|
2021-12-19 18:52:09 +00:00
|
|
|
|
|
|
|
# neovim
|
2022-01-16 16:59:55 +00:00
|
|
|
echo -n 'Removing luacache file: '
|
2021-12-18 23:10:41 +00:00
|
|
|
rm -f "$HOME/.cache/nvim/luacache"
|
2022-01-16 16:59:55 +00:00
|
|
|
echo 'Done'
|
|
|
|
echo -n 'Running LuaCacheClear: '
|
|
|
|
nvim -c 'try | execute "LuaCacheClear" | echo "Done" | catch /.*/ | echo "Command not found" | endtry | q' --headless
|
2022-01-24 00:25:13 +00:00
|
|
|
printf '\nRunning TSUpdateSync ... '
|
|
|
|
nvim -c 'try | execute "TSUpdateSync" | echo "Done" | catch /.*/ | echo "Command not found" | endtry | q' --headless
|
2021-12-20 21:29:36 +00:00
|
|
|
printf '\n'
|
2021-12-16 20:13:07 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-20 21:29:36 +00:00
|
|
|
reportChanges = lib.hm.dag.entryAfter [ "updateAppCaches" ] ''
|
2022-01-12 17:14:36 +00:00
|
|
|
nvd diff $oldGenPath $newGenPath
|
2021-12-13 13:00:48 +00:00
|
|
|
'';
|
|
|
|
};
|
2021-12-06 22:35:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
|
|
|
|
zoxide.enable = true;
|
|
|
|
};
|
|
|
|
}
|