Skip to content

Commit

Permalink
home: add some cloud dev stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Mar 13, 2024
1 parent 6545156 commit f977b06
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
15 changes: 15 additions & 0 deletions home/config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@ gch() {
git checkout $(fzf-git-branch)
}

# Urlencode
urlencode () {
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
for ((i = 0; i < length; i++ )) do
local c="${1:$i:1}"
case $c in
([a-zA-Z0-9.~_-]) printf '%s' "$c" ;;
(*) printf '%%%02X' "'$c" ;;
esac
done
LC_COLLATE=$old_lc_collate
}

source <(kubectl completion zsh)
alias k=kubectl

Expand Down
4 changes: 0 additions & 4 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ with mylib;
# Haskell
cabal-install
ghc

# Terraform
terraform
unstable.terragrunt
];

# Let Home Manager install and manage itself.
Expand Down
13 changes: 13 additions & 0 deletions home/modules/dev/cloud.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,24 @@ in
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
# it's pronounced kubernetes not kubernetes
kubectl
kubernetes-helm
kustomize
# backup management
velero
# plugins
krew

# Rancher Kubernetes Engine
rke

# iac n stuff
terraform
opentofu
# Terraform
terraform
unstable.terragrunt
];
};
}
2 changes: 1 addition & 1 deletion home/modules/dev/rust.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ in
config = lib.mkIf cfg.enable {
# Packages for rust development
home.packages = with pkgs; [
rustup # contains rustc, cargo, rustdoc, rustfmt, etc.
unstable.rustup # contains rustc, cargo, rustdoc, rustfmt, etc.
cargo-watch # cargo subcommand for watching files and running commands
cargo-make # cargo subcommand for running tasks defined in a toml file
];
Expand Down

0 comments on commit f977b06

Please sign in to comment.