2023-09-20 09:00:22 +01:00
|
|
|
{ config, pkgs, catppuccin-themes, ... }:
|
2023-09-15 07:13:52 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./alacritty.nix
|
2023-10-06 13:56:11 +01:00
|
|
|
./firefox.nix
|
2023-09-15 07:13:52 +01:00
|
|
|
./fzf.nix
|
|
|
|
./git.nix
|
|
|
|
./media.nix
|
|
|
|
./pass.nix
|
|
|
|
./ssh.nix
|
|
|
|
./starship.nix
|
|
|
|
./tmux.nix
|
|
|
|
./zathura.nix
|
|
|
|
./hyprland/default.nix
|
2023-09-24 12:17:51 +01:00
|
|
|
./emacs/default.nix
|
2023-09-25 13:42:13 +01:00
|
|
|
./accounts/default.nix
|
2023-10-03 07:42:06 +01:00
|
|
|
./ferdium/default.nix
|
2023-09-15 07:13:52 +01:00
|
|
|
];
|
2023-09-25 13:43:27 +01:00
|
|
|
home.packages = with pkgs; [ dig silver-searcher gnumake ];
|
2023-09-20 09:00:22 +01:00
|
|
|
programs = {
|
|
|
|
bash.enable = true;
|
|
|
|
readline = {
|
|
|
|
enable = true;
|
|
|
|
includeSystemConfig = true;
|
|
|
|
extraConfig = ''
|
|
|
|
set completion-ignore-case On
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
enableVteIntegration = true;
|
|
|
|
autocd = true;
|
|
|
|
dotDir = ".config/zsh";
|
|
|
|
historySubstringSearch.enable = true;
|
|
|
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
|
|
initExtraFirst = ''
|
|
|
|
source ${catppuccin-themes.zsh}
|
|
|
|
'';
|
|
|
|
initExtra = ''
|
|
|
|
xdg-query-program () {
|
|
|
|
FILETYPE=$(xdg-mime query filetype $@)
|
|
|
|
DEFAULT=$(xdg-mime query default $FILETYPE)
|
|
|
|
echo "$FILETYPE -> $DEFAULT"
|
|
|
|
}
|
2023-09-28 13:46:08 +01:00
|
|
|
rsync-local-config () {
|
|
|
|
HOST=$1
|
|
|
|
for TARGET in emacs doom starship.toml; do
|
|
|
|
SOURCE="${config.xdg.configHome}/$TARGET"
|
|
|
|
if [[ -e ${config.xdg.configHome}/$TARGET ]]; then
|
|
|
|
[[ -d $SOURCE ]] && SOURCE="$SOURCE/"
|
|
|
|
${pkgs.rsync}/bin/rsync -avzL $SOURCE $HOST:.config/$TARGET
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
2023-09-20 09:00:22 +01:00
|
|
|
'';
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [
|
|
|
|
# Productivity
|
|
|
|
"aliases"
|
|
|
|
"colored-man-pages"
|
|
|
|
"command-not-found"
|
|
|
|
"extract"
|
|
|
|
# Build tools
|
|
|
|
"git"
|
|
|
|
"gitignore"
|
|
|
|
# Misc
|
|
|
|
"lol"
|
|
|
|
"rand-quote"
|
|
|
|
];
|
|
|
|
theme = "";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
}
|