From 23208659b189dea6d74c65e2b3adc23f5bb084e4 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 29 Nov 2024 05:33:31 +0000 Subject: [PATCH] Add core configuration --- home-manager/machines/wsl/home.nix | 1 + home-manager/modules/programs/core.nix | 60 ++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 home-manager/modules/programs/core.nix diff --git a/home-manager/machines/wsl/home.nix b/home-manager/machines/wsl/home.nix index 8fcd862..c0e943e 100644 --- a/home-manager/machines/wsl/home.nix +++ b/home-manager/machines/wsl/home.nix @@ -23,6 +23,7 @@ ../../modules/programs/shell.nix ../../modules/programs/neovim.nix (import ../../modules/programs/git.nix { }) + ../../modules/programs/core.nix ]; home.username = "nathan"; home.homeDirectory = "/home/nathan/"; diff --git a/home-manager/modules/programs/core.nix b/home-manager/modules/programs/core.nix new file mode 100644 index 0000000..8183776 --- /dev/null +++ b/home-manager/modules/programs/core.nix @@ -0,0 +1,60 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + home.packages = with pkgs; [ + # Rust rewrites of cli stuff + fd + sd + du-dust + ripgrep + ripgrep-all + hyperfine + dogdns + duf + xcp + # Man but terse + tealdeer + # rsync + rclone + # General + file + tokei + gping + # Spell check + hunspell + hunspellDicts.en-us + # Cli markdown renderer + glow + # Better curl + httpie + # go with jq + jc + fx + ]; + programs.tmux = { + enable = true; + aggressiveResize = true; + keyMode = "vi"; + shortcut = "x"; + terminal = if pkgs.stdenv.isLinux then "tmux-256color" else "screen-256color"; + escapeTime = 100; + plugins = with pkgs; [ + tmuxPlugins.cpu + tmuxPlugins.jump + ]; + extraConfig = '' + set -ag terminal-overrides ",xterm-256color:RGB" + set-option -g status-interval 1 + set-option -g automatic-rename on + set-option -g automatic-rename-format '#{b:pane_current_path}: #{pane_current_command}' + ''; + }; + programs.btop.enable = true; + programs.jq.enable = true; + +}