nix-config/modules/cli-tools/default.nix
2026-03-10 20:04:40 +01:00

73 lines
1.4 KiB
Nix

{ inputs, ... }:
let
commonPackages =
pkgs: with pkgs; [
fastfetch
zip
unzip
ripgrep
fzf
fd
sd
bat
tldr
fortune
just
mmv-go
usbutils
opencode
lazygit
wget
btop
rsync
];
in
{
flake.modules.nixos.cli-tools =
{ pkgs, ... }:
{
environment.systemPackages = commonPackages pkgs;
home-manager.sharedModules = [
inputs.self.modules.homeManager.cli-tools
];
};
flake.modules.darwin.cli-tools =
{ pkgs, ... }:
{
environment.systemPackages = commonPackages pkgs;
home-manager.sharedModules = [
inputs.self.modules.homeManager.cli-tools
];
};
flake.modules.homeManager.cli-tools =
{ pkgs, ... }:
{
programs.lazygit = {
enable = true;
settings = {
gui = {
nerdFontsVersion = "3";
theme = {
lightTheme = false;
activeBorderColor = [
"magenta"
"bold"
];
searchingActiveBorderColor = [
"cyan"
"bold"
];
inactiveBorderColor = [ "#807c9f" ];
optionsTextColor = [ "#807c9f" ];
selectedLineBgColor = [ "#331531" ];
inactiveViewSelectedLineBgColor = [ "#1d202f" ];
};
};
};
};
};
}