feat: add zsh + git features, redesign shell

This commit is contained in:
2026-04-12 21:27:51 +00:00
parent 6770bc76a2
commit 898751576d
6 changed files with 107 additions and 54 deletions

View File

@@ -1,25 +1,28 @@
{
nixos = _: {
programs.zsh.enable = true;
environment.etc."zshenv".text = ''
export ZDOTDIR=$HOME/.config/zsh
'';
};
nixos =
{ lib, ... }:
{
options.features.shell.enable = lib.mkEnableOption "shell extras";
};
home =
{ pkgs, ... }:
{ pkgs, lib, osConfig, ... }:
let
cfg = osConfig.features.shell;
in
{
home.packages = with pkgs; [
starship
fzf
htop
jc
jq
openssl
pv
ripgrep
fd
tmux
];
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
fzf
htop
jc
jq
openssl
pv
ripgrep
fd
tmux
];
};
};
}