[dev] Adds more dev tools (git, kubernetes) and meta packages
This commit is contained in:
8
home-manager/features/development-linux.nix
Normal file
8
home-manager/features/development-linux.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
# Meta-package for development on linux
|
||||
{...}:
|
||||
{
|
||||
imports = [
|
||||
./development.nix
|
||||
./ssh.nix
|
||||
]
|
||||
}
|
||||
9
home-manager/features/development.nix
Normal file
9
home-manager/features/development.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
./shell.nix
|
||||
./terminal.nix
|
||||
./neovim.nix
|
||||
];
|
||||
}
|
||||
25
home-manager/features/git.nix
Normal file
25
home-manager/features/git.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home-manager/features/kubernetes.nix
Normal file
10
home-manager/features/kubernetes.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
kubectl
|
||||
];
|
||||
|
||||
home.shellAliases = {
|
||||
k = "kubectl";
|
||||
};
|
||||
}
|
||||
@@ -12,8 +12,6 @@
|
||||
# Make ^U work like it does in Bash
|
||||
bindkey "^U" backward-kill-line
|
||||
|
||||
alias 'p?'='ps ax | grep'
|
||||
|
||||
# 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
|
||||
setopt inc_append_history
|
||||
|
||||
@@ -32,6 +32,10 @@
|
||||
nerd-fonts.jetbrains-mono
|
||||
];
|
||||
|
||||
home.shellAliases = {
|
||||
"p?" = "ps ax | grep";
|
||||
};
|
||||
|
||||
# Allow Home Manager to set fonts.
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user