mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
flox prompt
This commit is contained in:
parent
be43882941
commit
96254b7316
1 changed files with 30 additions and 176 deletions
|
|
@ -64,113 +64,6 @@ in
|
|||
# (nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||
tmuxai-pkg # Just install the package
|
||||
obsidian
|
||||
element-desktop
|
||||
ghostty
|
||||
manix
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "death916";
|
||||
userEmail = "mail@trentnelson.dev";
|
||||
extraConfig = {
|
||||
credential.helper = "store";
|
||||
};
|
||||
};
|
||||
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
settings = {
|
||||
#auto_sync = true;
|
||||
#sync_frequency = "5m";
|
||||
#sync_address = "https://api.atuin.sh";
|
||||
search_mode = "fuzzy";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
aws.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
line_break.disabled = true;
|
||||
|
||||
conda = {
|
||||
truncation_length = 1;
|
||||
format = ''[$symbol$environment]($style) '';
|
||||
symbol = " ";
|
||||
style = "green bold";
|
||||
ignore_base = false;
|
||||
disabled = false;
|
||||
};
|
||||
|
||||
# In your ~/Documents/nix-config/home-manager/home.nix
|
||||
|
||||
{ config, pkgs, lib, hmLib, ... }:
|
||||
let
|
||||
tmuxaiPackageDir = ../pkgs/tmuxai;
|
||||
tmuxai-pkg = pkgs.callPackage tmuxaiPackageDir {};
|
||||
in
|
||||
{
|
||||
home.username = "death916";
|
||||
home.homeDirectory = "/home/death916";
|
||||
|
||||
xresources.properties = {
|
||||
"Xcursor.size" = 16;
|
||||
"Xft.dpi" = 172;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
fastfetch
|
||||
nnn
|
||||
zip
|
||||
xz
|
||||
unzip
|
||||
p7zip
|
||||
ripgrep
|
||||
jq
|
||||
yq-go
|
||||
eza
|
||||
fzf
|
||||
mtr
|
||||
iperf3
|
||||
dnsutils
|
||||
ldns
|
||||
aria2
|
||||
socat
|
||||
nmap
|
||||
ipcalc
|
||||
cowsay
|
||||
file
|
||||
which
|
||||
tree
|
||||
gnused
|
||||
gnutar
|
||||
gawk
|
||||
zstd
|
||||
gnupg
|
||||
nix-output-monitor
|
||||
glow
|
||||
btop
|
||||
iotop
|
||||
iftop
|
||||
strace
|
||||
ltrace
|
||||
lsof
|
||||
sysstat
|
||||
lm_sensors
|
||||
ethtool
|
||||
pciutils
|
||||
usbutils
|
||||
waveterm
|
||||
halloy
|
||||
tmux
|
||||
nextcloud-client
|
||||
tmuxai-pkg
|
||||
obsidian
|
||||
element-desktop
|
||||
ghostty
|
||||
manix
|
||||
|
|
@ -188,40 +81,47 @@ in
|
|||
programs.atuin = {
|
||||
enable = true;
|
||||
settings = {
|
||||
#auto_sync = true;
|
||||
#sync_frequency = "5m";
|
||||
#sync_address = "https://api.atuin.sh";
|
||||
search_mode = "fuzzy";
|
||||
};
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
aws.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
line_break.disabled = true;
|
||||
conda = {
|
||||
truncation_length = 1;
|
||||
format = ''[$symbol$environment]($style) '';
|
||||
symbol = " ";
|
||||
style = "green bold";
|
||||
ignore_base = false;
|
||||
disabled = false;
|
||||
};
|
||||
custom.flox_prompt_indicator = {
|
||||
description = "Shows the active Flox environment name";
|
||||
command = ''if [ -n "$FLOX_ENV_NAME" ]; then echo "via [❄️ $FLOX_ENV_NAME](bold blue) "; fi'';
|
||||
when = ''test -n "$FLOX_ENV_NAME"'';
|
||||
format = ''$output'';
|
||||
shell = "bash";
|
||||
};
|
||||
format = ''$directory $git_branch $conda$custom_flox_prompt_indicator$nix_shell$cmd_duration$status$character'';
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
aws.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
line_break.disabled = true;
|
||||
|
||||
conda = {
|
||||
truncation_length = 1;
|
||||
format = ''[$symbol$environment]($style) '';
|
||||
symbol = " ";
|
||||
style = "green bold";
|
||||
ignore_base = false;
|
||||
disabled = false;
|
||||
};
|
||||
|
||||
custom.flox_prompt_indicator = {
|
||||
description = "Shows the active Flox environment name";
|
||||
command = ''if [ -n "$FLOX_ENV_NAME" ]; then echo "via [❄️ $FLOX_ENV_NAME](bold blue) "; fi'';
|
||||
when = ''test -n "$FLOX_ENV_NAME"'';
|
||||
format = ''$output'';
|
||||
shell = "bash";
|
||||
};
|
||||
|
||||
format = ''$directory $git_branch $conda$custom_flox_prompt_indicator$nix_shell$cmd_duration$status$character'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs;
|
||||
};
|
||||
};
|
||||
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
|
|
@ -234,7 +134,6 @@ in
|
|||
selection.save_to_clipboard = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.gnome-keyring.enable = true;
|
||||
|
||||
programs.bash = {
|
||||
|
|
@ -255,51 +154,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
};
|
||||
|
||||
home.stateVersion = "24.11";
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
||||
format = ''$directory $git_branch $conda$custom_flox_prompt_indicator$nix_shell$cmd_duration$status$character'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs;
|
||||
};
|
||||
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
env.TERM = "xterm-256color";
|
||||
font = {
|
||||
size = 12;
|
||||
};
|
||||
scrolling.multiplier = 5;
|
||||
selection.save_to_clipboard = true;
|
||||
};
|
||||
};
|
||||
services.gnome-keyring.enable = true;
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
bashrcExtra = ''
|
||||
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
|
||||
'';
|
||||
shellAliases = {
|
||||
k = "kubectl";
|
||||
pimox = "tailscale ssh pimox";
|
||||
homelab = "tailscale ssh homelab";
|
||||
urldecode = "python3 -c 'import sys, urllib.parse as ul; print(ul.unquote_plus(sys.stdin.read()))'";
|
||||
urlencode = "python3 -c 'import sys, urllib.parse as ul; print(ul.quote_plus(sys.stdin.read()))'";
|
||||
};
|
||||
};
|
||||
|
||||
# --- TMUXAI CONFIGURATION REMOVED FOR NOW ---
|
||||
# xdg.configFile."tmuxai/config.yaml" = {
|
||||
# source = hmLib.mkOutOfStoreSymlink tmuxaiConfigTemplatePath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue