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