[dev] Adds more dev tools (git, kubernetes) and meta packages

This commit is contained in:
Drew Haven
2025-02-10 14:44:38 -08:00
parent c7c80c8140
commit fda8ead0f9
8 changed files with 71 additions and 11 deletions

View File

@@ -3,12 +3,11 @@
imports = [ imports = [
./features/audio.nix ./features/audio.nix
./features/hyprland.nix ./features/hyprland.nix
./features/neovim.nix ./features/development-linux.nix
./features/shell.nix
./features/ssh.nix
./features/terminal.nix
]; ];
home.stateVersion = "24.11";
home.username = "drew"; home.username = "drew";
home.homeDirectory = "/home/drew"; home.homeDirectory = "/home/drew";
@@ -93,5 +92,8 @@
style.name = "adwaita-dark"; style.name = "adwaita-dark";
}; };
home.stateVersion = "24.11"; programs.git = {
userName = "Drew Haven";
userEmail = "drew.haven@gmail.com";
};
} }

View File

@@ -0,0 +1,8 @@
# Meta-package for development on linux
{...}:
{
imports = [
./development.nix
./ssh.nix
]
}

View File

@@ -0,0 +1,9 @@
{ ... }:
{
imports = [
./git.nix
./shell.nix
./terminal.nix
./neovim.nix
];
}

View File

@@ -0,0 +1,25 @@
{ ... }:
{
programs.git = {
enable = true;
aliases = {
"co" = "checkout";
"s" = "status";
"b" = "branch";
"r" = "remote";
"amend" = "commit -a --amend --no-edit";
"c" = "commit -am";
};
extraConfig = {
core = {
pager = "";
};
pull = {
rebase = true;
};
log = {
date = "iso";
};
};
};
}

View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
kubectl
];
home.shellAliases = {
k = "kubectl";
};
}

View File

@@ -12,8 +12,6 @@
# Make ^U work like it does in Bash # Make ^U work like it does in Bash
bindkey "^U" backward-kill-line bindkey "^U" backward-kill-line
alias 'p?'='ps ax | grep'
# This doesn't seem to be in the homemanager options # This doesn't seem to be in the homemanager options
# Makes shells incrementally append history so that new shells have the history of open shells # Makes shells incrementally append history so that new shells have the history of open shells
setopt inc_append_history setopt inc_append_history

View File

@@ -32,6 +32,10 @@
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
]; ];
home.shellAliases = {
"p?" = "ps ax | grep";
};
# Allow Home Manager to set fonts. # Allow Home Manager to set fonts.
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;

View File

@@ -1,10 +1,9 @@
{ pkgs, self, ... }: { pkgs, self, ... }:
{ {
imports = [ imports = [
../../../home-manager/features/shell.nix ../../../home-manager/features/development.nix
../../../home-manager/features/terminal.nix ../../../home-manager/features/kubernetes.nix
../../../home-manager/features/neovim.nix ../../../home-manager/features/macos
../../../home-manager/features/macos
]; ];
home.username = "drew"; home.username = "drew";
@@ -17,4 +16,9 @@
]; ];
home.stateVersion = "24.11"; home.stateVersion = "24.11";
programs.git = {
userName = "Drew Haven";
userEmail = "drew.haven@tarro.com";
};
} }