113 lines
2.3 KiB
Nix
113 lines
2.3 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
curl
|
|
dust
|
|
tldr
|
|
tailscale
|
|
docker
|
|
nix-prefetch-github
|
|
];
|
|
|
|
# _: let
|
|
# onePassPath = "~/.1password/agent.sock";
|
|
|
|
# in {
|
|
# programs.ssh ={
|
|
# enable = true;
|
|
# extraConfig = ''
|
|
# Host *
|
|
# IdentityAgent ${onePassPath}
|
|
# '';
|
|
# };
|
|
# }
|
|
programs = {
|
|
fastfetch.enable = true;
|
|
neovim.enable = true;
|
|
fzf.enable = true;
|
|
bat.enable = true;
|
|
btop.enable = true;
|
|
kitty.enable = true;
|
|
yazi.enable = true;
|
|
starship = {
|
|
enable = true;
|
|
settings = { };
|
|
};
|
|
|
|
git = {
|
|
enable = true;
|
|
userName = "rogueking";
|
|
userEmail = "miguel@muniz.org";
|
|
};
|
|
|
|
eza = {
|
|
enable = true;
|
|
icons = "auto";
|
|
enableZshIntegration = true;
|
|
extraOptions = [
|
|
"--group-directories-first"
|
|
];
|
|
};
|
|
|
|
zoxide = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
#syntaxHighlighting.enable = true;
|
|
historySubstringSearch.enable = true;
|
|
plugins = [
|
|
{
|
|
name = "fast-syntax-highlighting";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "zdharma-continuum";
|
|
repo = "fast-syntax-highlighting";
|
|
rev = "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9";
|
|
sha256 = "RVX9ZSzjBW3LpFs2W86lKI6vtcvDWP6EPxzeTcRZua4=";
|
|
};
|
|
}
|
|
# {
|
|
# name = "ohmyzsh-theme-passion";
|
|
# file = "passion.zsh-theme";
|
|
# src = pkgs.fetchFromGitHub {
|
|
# owner = "ChesterYue";
|
|
# repo = "ohmyzsh-theme-passion";
|
|
# rev = "7f06398c0a3c046f80f6162047b64a1c0ab7f76d";
|
|
# sha256 = "uFEGxcqkdWCroZ0L3h4G4uE6C75bG6IDbDnptkbxgj0=";
|
|
# };
|
|
# }
|
|
];
|
|
|
|
shellAliases = {
|
|
ls = "eza --color=auto";
|
|
grep = "grep --color=auto";
|
|
ll = "eza -la";
|
|
lt = "eza --tree";
|
|
cd = "z";
|
|
open = "xdg-open";
|
|
rebuild = "sudo nixos-rebuild switch --flake /etc/nixos#default";
|
|
};
|
|
|
|
initExtra = ''
|
|
fastfetch
|
|
'';
|
|
|
|
history = {
|
|
size = 10000;
|
|
path = "${config.xdg.dataHome}/zsh/history";
|
|
};
|
|
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
custom = "~/.oh-my-zsh/custom";
|
|
theme = "passion";
|
|
};
|
|
};
|
|
};
|
|
}
|