hoo boy, this some magic

This commit is contained in:
Anthony Cicchetti 2023-05-09 22:31:32 -04:00
parent 0e15b1ae5a
commit acb15b5e7c
6 changed files with 335 additions and 22 deletions

View file

@ -60,30 +60,43 @@
# #
# if you don't want to manage your shell through Home Manager. # if you don't want to manage your shell through Home Manager.
home.sessionVariables = { home.sessionVariables = {
# EDITOR = "emacs"; EDITOR = "nvim";
}; };
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.zsh = {
enable = false; programs.atuin = {
}; enable = true;
programs.nix-index-database = { enableZshIntegration = true;
comma.enable = true;
}; };
programs.direnv = { programs.direnv = {
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
programs.git = {
enable = false; programs.exa = {
# TODO enable = true;
git = true;
icons = true;
enableAliases = false;
}; };
programs.gh = { programs.gh = {
enable = false; enable = false;
# TODO # TODO
}; };
programs.htop = {
enable = true;
};
programs.mcfly = {
enable = false;
keyScheme = "vim";
};
programs.neovim = { programs.neovim = {
enable = false; enable = false;
# TODO # TODO
@ -91,10 +104,28 @@
# fnl dir # fnl dir
# undodir at ~/.undodir # undodir at ~/.undodir
}; };
programs.nix-index-database = {
comma.enable = true;
};
programs.nnn = { programs.nnn = {
enable = true; enable = true;
}; };
programs.skim = {
enable = true;
enableZshIntegration = false;
};
programs.zoxide = {
enable = true;
};
programs.zsh = {
enable = false;
};
imports = [ imports = [
./modules/packages ./modules/packages
./modules/files.nix ./modules/files.nix

View file

@ -4,7 +4,7 @@
config, config,
... ...
}: { }: {
home.file.".config/zellij/config.kdl".source = ../../../zellij/config.kdl; home.file.".ideavimrc".source = ../../../ideavim/ideavimrc;
# TODO # TODO
# git-sync binary # git-sync binary
# ideavimrc # ideavimrc

View file

@ -4,33 +4,26 @@
config, config,
... ...
}: { }: {
imports = [./git.nix ./starship.nix ./zellij.nix];
home.packages = with pkgs; [ home.packages = with pkgs; [
# TODO: https://github.com/ogham/dog
atuin
bandwhich bandwhich
bat bat
cargo-workspaces cargo-workspaces
delta
difftastic
dogdns dogdns
erdtree erdtree
exa
fd fd
git git
gnutar gnutar
gping gping
htop internetarchive
jless jless
just just
kondo kondo
mcfly litecli
neovim neovim
poetry
ripgrep ripgrep
skim yt-dlp
starship
zellij
zoxide
zsh
zstd zstd
]; ];
} }

View file

@ -0,0 +1,65 @@
{
config,
lib,
pkgs,
...
}: {
programs.git = {
enable = true;
difftastic.enable = true;
userName = "Anthony Cicchetti";
userEmail = "anthony@anthonycicchetti.com";
aliases = {
pushall = "!git remote | xargs -L1 git push --all";
pr = "!f() { git fetch -fu $${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f";
logp = "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short";
};
extraConfig = {
core = {
autocrlf = "input";
fsmonitor = true;
};
checkout = {
workers = 0;
};
fetch = {
prune = true;
};
format = {
pretty = "fuller";
};
log = {
follow = true;
};
push = {
autoSetupRemote = true;
};
pull = {
rebase = true;
};
init = {
defaultBranch = "main";
};
help = {
autoCorrect = "prompt";
};
rebase = {
updateRefs = true;
};
};
includes = [
{path = "~/.gitconfig_local";}
];
};
}

View file

@ -0,0 +1,212 @@
{
config,
lib,
pkgs,
...
}: {
programs.starship = {
enable = true;
settings = {
aws = {
symbol = " ";
};
battery = {
disabled = true;
};
buf = {
symbol = " ";
};
c = {
symbol = " ";
};
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
vicmd_symbol = "[ƴ](bold yellow)";
};
command_timeout = 1000;
conda = {
symbol = " ";
};
continuation_prompt = "";
dart = {
symbol = " ";
};
directory = {
read_only = " ";
};
docker_context = {
symbol = " ";
};
elixir = {
symbol = " ";
};
elm = {
symbol = " ";
};
fossil_branch = {
symbol = " ";
};
git_branch = {
symbol = " ";
};
git_metrics = {
disabled = false;
added_style = "bold blue";
};
git_status = {
disabled = true;
ahead = "\${count}";
diverged = "\${ahead_count}\${behind_count}";
behind = "\${count}";
};
golang = {
symbol = " ";
};
guix_shell = {
symbol = " ";
};
haskell = {
symbol = " ";
};
haxe = {
symbol = " ";
};
hg_branch = {
symbol = " ";
};
hostname = {
ssh_symbol = " ";
};
java = {
symbol = " ";
};
jobs = {
symbol = "+";
};
julia = {
symbol = " ";
};
lua = {
symbol = " ";
};
memory_usage = {
symbol = " ";
};
meson = {
symbol = " ";
};
nim = {
symbol = " ";
};
nix_shell = {
symbol = " ";
};
nodejs = {
symbol = " ";
};
os.symbols = {
"Alpaquita" = " ";
"Alpine" = " ";
"Amazon" = " ";
"Android" = " ";
"Arch" = " ";
"Artix" = " ";
"CentOS" = " ";
"Debian" = " ";
"DragonFly" = " ";
"Emscripten" = " ";
"EndeavourOS" = " ";
"Fedora" = " ";
"FreeBSD" = " ";
"Garuda" = " ";
"Gentoo" = " ";
"HardenedBSD" = " ";
"Illumos" = " ";
"Linux" = " ";
"Mabox" = " ";
"Macos" = " ";
"Manjaro" = " ";
"Mariner" = " ";
"MidnightBSD" = " ";
"Mint" = " ";
"NetBSD" = " ";
"NixOS" = " ";
"OpenBSD" = " ";
"openSUSE" = " ";
"OracleLinux" = " ";
"Pop" = " ";
"Raspbian" = " ";
"Redhat" = " ";
"RedHatEnterprise" = " ";
"Redox" = " ";
"Solus" = " ";
"SUSE" = " ";
"Ubuntu" = " ";
"Unknown" = " ";
"Windows" = " ";
};
package = {
symbol = " ";
};
pijul_channel = {
symbol = "🪺 ";
};
python = {
symbol = " ";
};
rlang = {
symbol = " ";
};
ruby = {
symbol = " ";
};
rust = {
symbol = " ";
};
scala = {
symbol = " ";
};
spack = {
symbol = "🅢 ";
};
};
};
}

View file

@ -0,0 +1,12 @@
{
config,
lib,
pkgs,
...
}: {
programs.zellij = {
enable = true;
};
home.file.".config/zellij/config.kdl".source = ../../../../zellij/config.kdl;
}