This commit is contained in:
2025-12-26 11:02:58 +01:00
commit 83841223bb
15 changed files with 922 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
{
pkgs,
primaryUser,
...
}:
{
networking.hostName = "cyper-mac";
# host-specific homebrew casks
#homebrew.casks = [
# "slack"
#];
# host-specific home-manager configuration
home-manager.users.${primaryUser} = {
home.packages = with pkgs; [
graphite-cli
];
programs = {
zsh = {
initContent = ''
# Source shell functions
source ${./shell-functions.sh}
'';
};
};
};
}

View File

@@ -0,0 +1,13 @@
# convenient shell functions
# quick navigation to git repo root
function cdroot() {
local root
root=$(git rev-parse --show-toplevel 2>/dev/null)
if [ $? -eq 0 ]; then
cd "$root"
else
echo "Not in a git repository"
return 1
fi
}