Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 1 | { pkgs, config, inputs, ... }: { |
| 2 | programs.zsh.enable = true; |
| 3 | users.users.coded.shell = pkgs.zsh; |
| 4 | |
Samuel Shuert | cd9a7f5 | 2024-02-09 21:40:44 -0500 | [diff] [blame^] | 5 | home-manager.users.coded.home.packages = with pkgs; [ |
Samuel Shuert | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame] | 6 | bmon |
| 7 | wget |
Samuel Shuert | f6c41b5 | 2023-12-02 13:21:47 -0500 | [diff] [blame] | 8 | ripgrep |
Samuel Shuert | ed2a336 | 2024-01-25 21:56:10 -0500 | [diff] [blame] | 9 | guake |
Samuel Shuert | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame] | 10 | ]; |
| 11 | |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 12 | home-manager.users.coded.programs = { |
| 13 | # ZSH |
| 14 | zsh = { |
| 15 | enable = true; |
| 16 | enableAutosuggestions = true; |
| 17 | enableCompletion = true; |
| 18 | autocd = true; |
| 19 | defaultKeymap = "emacs"; |
| 20 | |
| 21 | shellAliases = { |
| 22 | rebuild = "sudo nixos-rebuild switch --flake /home/coded/nixConfig/"; |
| 23 | "gr!" = "git review"; |
| 24 | clr = "clear"; |
Samuel Shuert | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame] | 25 | nh = "wget -O ~/Documents/hashCheck $1 | nix hash file ~/Documents/hashCheck"; |
Samuel Shuert | f6c41b5 | 2023-12-02 13:21:47 -0500 | [diff] [blame] | 26 | edit = "nvim"; |
| 27 | neovim = "nvim"; |
| 28 | v = "nvim"; |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | dirHashes = { code = "$HOME/Documents/programming"; }; |
| 32 | |
| 33 | history = { extended = true; }; |
| 34 | historySubstringSearch.enable = true; |
| 35 | |
| 36 | oh-my-zsh = { |
| 37 | enable = true; |
| 38 | plugins = [ "git" ]; |
| 39 | }; |
| 40 | }; |
Samuel Shuert | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame] | 41 | |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 42 | # Starship |
| 43 | starship = { |
| 44 | enable = true; |
| 45 | settings = { format = "$all"; }; |
| 46 | }; |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 47 | |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 48 | # Nix-index |
| 49 | nix-index.enable = true; |
| 50 | |
| 51 | # thefuck |
| 52 | thefuck = { |
| 53 | enable = true; |
| 54 | enableInstantMode = true; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | environment.pathsToLink = |
| 59 | [ "/share/zsh" ]; # needed for completing system packages |
| 60 | } |