fixes cli tools config

This commit is contained in:
Dennis Schoepf 2026-03-04 19:45:03 +01:00
parent 65a428b116
commit c69697bbd3
2 changed files with 63 additions and 28 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
{ inputs, ... }:
let
commonPackages =
pkgs: with pkgs; [
@ -15,7 +15,6 @@ let
just
mmv-go
usbutils
lazygit
opencode
];
in
@ -24,11 +23,47 @@ in
{ pkgs, ... }:
{
environment.systemPackages = commonPackages pkgs;
home-manager.sharedModules = [
inputs.self.modules.homeManager.git
];
};
flake.modules.darwin.cli-tools =
{ pkgs, ... }:
{
environment.systemPackages = commonPackages pkgs;
home-manager.sharedModules = [
inputs.self.modules.homeManager.git
];
};
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" ];
};
};
};
};
};
}

View file

@ -4,7 +4,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
git
git
];
home-manager.sharedModules = [
@ -16,7 +16,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
git
git
];
home-manager.sharedModules = [
@ -24,35 +24,35 @@
];
};
flake.modules.homeManager.git =
flake.modules.homeManager.git =
{ pkgs, config, ... }:
{
programs.git = {
enable = true;
settings = {
init = {
defaultBranch = "main";
};
programs.git = {
enable = true;
settings = {
init = {
defaultBranch = "main";
};
core = {
ignorecase = "false";
};
core = {
ignorecase = "false";
};
pull = {
rebase = false;
};
pull = {
rebase = false;
};
push = {
autoSetupRemote = true;
};
push = {
autoSetupRemote = true;
};
user = {
# TODO get from config
name = "Dennis Schoepf";
email = "me@dnsc.io";
};
};
ignores = [ ".DS_Store" ];
};
user = {
# TODO get from config
name = "Dennis Schoepf";
email = "me@dnsc.io";
};
};
ignores = [ ".DS_Store" ];
};
};
}