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 | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame] | 5 | environment.systemPackages = with pkgs; [ |
| 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"; |
| 25 | pnpx = "pnpm dlx"; |
Samuel Shuert | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame] | 26 | print3d = "sudo /run/current-system/sw/bin/pronsole.py"; |
| 27 | nh = "wget -O ~/Documents/hashCheck $1 | nix hash file ~/Documents/hashCheck"; |
Samuel Shuert | f6c41b5 | 2023-12-02 13:21:47 -0500 | [diff] [blame] | 28 | edit = "nvim"; |
| 29 | neovim = "nvim"; |
| 30 | v = "nvim"; |
Samuel Shuert | ed2a336 | 2024-01-25 21:56:10 -0500 | [diff] [blame^] | 31 | doom = "~/.config/emacs/bin/doom"; |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | dirHashes = { code = "$HOME/Documents/programming"; }; |
| 35 | |
| 36 | history = { extended = true; }; |
| 37 | historySubstringSearch.enable = true; |
| 38 | |
| 39 | oh-my-zsh = { |
| 40 | enable = true; |
| 41 | plugins = [ "git" ]; |
| 42 | }; |
| 43 | }; |
Samuel Shuert | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame] | 44 | |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 45 | # Starship |
| 46 | starship = { |
| 47 | enable = true; |
| 48 | settings = { format = "$all"; }; |
| 49 | }; |
| 50 | |
| 51 | # Alacritty |
| 52 | alacritty = { |
| 53 | enable = true; |
| 54 | settings = { |
| 55 | window.dimensions = { |
| 56 | lines = 40; |
| 57 | columns = 150; |
| 58 | }; |
| 59 | import = [ |
| 60 | "${inputs.alacritty-themes}/themes/Catppuccin-Mocha.yml" |
| 61 | ]; |
| 62 | }; |
| 63 | }; |
| 64 | |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 65 | # Nix-index |
| 66 | nix-index.enable = true; |
| 67 | |
| 68 | # thefuck |
| 69 | thefuck = { |
| 70 | enable = true; |
| 71 | enableInstantMode = true; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | environment.pathsToLink = |
| 76 | [ "/share/zsh" ]; # needed for completing system packages |
| 77 | } |