+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
093c04a
main
1{ pkgs , lib , ...} : 2{ 3home = { 4shell = { 5enableFishIntegration = true ; 6enableBashIntegration = true ; 7}; 8packages = with pkgs ; [ 9# zsh 10zsh-syntax-highlighting 11zsh-autosuggestions 12nix-zsh-completions 13 14# bash 15blesh 16]; 17}; 18 19programs = { 20fish = { 21enable = true ; 22plugins = with pkgs . fishPlugins ; let 23mkPlugin = p :{ 24inherit ( p ) src ; 25name = " ${ p . pname } " ; 26}; 27in 28( map mkPlugin [ 29puffer # (!! !$ !* ..+) 30done 31fish-you-should-use 32colored-man-pages 33autopair # try pisces? 34# fzf or fzf.fish or fifc if default integration isn't enough 35]); 36shellInitLast = "source ~/.config/fish/extra.fish" ; 37}; 38 39# TODO: check if these are on by default 40ghostty . enableFishIntegration = true ; 41kitty . shellIntegration . enableFishIntegration = true ; 42 43fzf = let fd = "fd --mount --color=always" ; in { 44enable = true ; 45fileWidget = { command = fd ; 46options = [ 47"--multi" 48"--height=80%" 49"--ansi" 50"--preview '~/.config/zsh/preview.sh {}'" 51"--bind 'ctrl-/:reload( ${ fd } . / -H)'" 52"--bind 'ctrl-h:reload( ${ fd } . ~ -H)'" 53"--bind 'ctrl-w:reload( ${ fd } )'" 54]; 55}; 56changeDirWidget = { command = " ${ fd } -td" ; options = [ "--ansi" ]; }; 57historyWidget . command = "" ; # use atuin for history 58defaultOptions = [ 59"--reverse" 60"--bind=ctrl-z:ignore" 61"--preview-window=down" 62"--height=60%" 63"--inline-info" 64"--bind 'ctrl-p:change-preview-window(hidden|down)'" 65"--bind ctrl-r:first" 66"--bind alt-up:first" 67"--bind alt-down:last" 68"--bind shift-up:preview-page-up" 69"--bind shift-down:preview-page-down" 70"--bind ctrl-d:half-page-down" 71"--bind ctrl-u:half-page-up" 72]; 73colors . bg = lib . mkForce "#000000" ; 74}; 75atuin = { 76enable = true ; 77flags = [ "--disable-up-arrow" ]; 78settings = { 79dialect = "us" ; 80style = "compact" ; 81invert = true ; 82inline_height = 20 ; 83show_tabs = false ; 84show_help = false ; 85sync_frequency = "12h" ; 86}; 87}; 88zoxide = { 89enable = true ; 90options = [ "--cmd j" ]; 91}; 92direnv . enable = true ; 93starship . enable = true ; 94pay-respects = { 95enable = true ; 96options = [ "--nocnf" ]; 97}; 98nix-index = { 99enableFishIntegration = false ; 100enableBashIntegration = false ; 101}; 102 103bash = { 104enable = false ; 105bashrcExtra = '' 106source $(blesh-share)/ble.sh 107if [ -d "$HOME/.local/bin" ] ; then 108PATH="$HOME/.local/bin:$PATH" 109fi 110 111if [ -d "$HOME/.nix-profile/bin" ] ; then 112PATH="$HOME/.nix-profile/bin:$PATH" 113fi'' ; 114 115shellAliases = { 116cat = "bat" ; 117c = "clear" ; 118l = "eza --icons" ; 119ls = "l -l" ; 120tree = "l -T --git-ignore" ; 121}; 122}; 123}; 124}