-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hosts: use hm for R2026 and bwpm-FP2CYXKY2V
- Loading branch information
Showing
9 changed files
with
134 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
defaults write NSGlobalDomain AppleInterfaceStyle Dark | ||
defaults write NSGlobalDomain KeyRepeat -int 3 | ||
defaults write NSGlobalDomain "com.apple.mouse.tapBehavior" -int 1 | ||
defaults write NSGlobalDomain "com.apple.swipescrolldirection" -bool false # disable natural scrolling | ||
defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false | ||
|
||
defaults write com.apple.dock autohide -bool true | ||
defaults write com.apple.dock tilesize -int 48 | ||
defaults write com.apple.dock "mru-spaces" -bool "false" | ||
killall Dock | ||
|
||
defaults write com.apple.spaces "spans-displays" -bool "false" | ||
killall SystemUIServer | ||
|
||
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | ||
defaults write com.apple.finder FXPreferredViewStyle "Nlsv" # list view | ||
defaults write com.apple.finder QuitMenuItem -bool true | ||
defaults write com.apple.finder ShowPathbar -bool true | ||
defaults write com.apple.finder ShowStatusBar -bool true | ||
killall Finder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# manually | ||
# - install chrome, intellij, iterm2, docker, vscode, karabiner elements, homebrew | ||
# - run ./darwin-defaults.sh | ||
# - run commands below | ||
# - iterm2 set UbuntuMono font, size 13, h 85, v 115, tango dark | ||
# - disable keyboard shortcuts for "Input Sources" in system settings | ||
# - enable keyboard shortcuts for Mission Control to switch to desktops | ||
# - Trackpad: Enable Tap to Click | ||
# - karabiner mapping: | ||
# - left_control -> left_command | ||
# - left_option -> left_control | ||
# - left_command -> left_option | ||
# - for internal keyboard: | ||
# - fn -> left_command | ||
# - left_control -> fn | ||
|
||
brew tap homebrew/cask-fonts | ||
brew install --cask homebrew/cask-fonts/font-ubuntu-mono-nerd-font | ||
brew install koekeishiya/formulae/yabai | ||
yabai --start-service | ||
brew install koekeishiya/formulae/skhd | ||
skhd --start-service | ||
brew install --cask spaceid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ fi | |
|
||
ARGS="${*}" | ||
|
||
git bc "feature/TRAP-${ARGS// /-}" | ||
git bc "feature/CTMSDKS-${ARGS// /-}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FILE="${1}" | ||
|
||
REPLACE= | ||
if [[ "$(git branch-name)" =~ ^feature/(TRAP-[0-9]*).*$ ]]; then | ||
REPLACE="${BASH_REMATCH[1]}: " | ||
if [[ "$(git branch-name)" =~ ^feature/(CTMSDKS-[0-9]*).*$ ]]; then | ||
REPLACE="[${BASH_REMATCH[1]}] " | ||
fi | ||
|
||
sed -i -e "s#PREFIX#${REPLACE}#" "${FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
{ | ||
custom = { | ||
base = { | ||
general.darwin = true; | ||
|
||
desktop = { | ||
enable = true; | ||
laptop = true; | ||
}; | ||
}; | ||
|
||
development = { | ||
jbang = { | ||
enable = true; | ||
trustedSources = [ "https://repo1.maven.org/maven2/io/quarkus/quarkus-cli/" ]; | ||
}; | ||
|
||
nix.home-manager.enable = true; | ||
}; | ||
|
||
misc = { | ||
sdks = { | ||
enable = true; | ||
links = { | ||
inherit (pkgs) jdk17 jdk21; | ||
}; | ||
}; | ||
|
||
work = { | ||
enable = true; | ||
directory = "randstad/db"; | ||
mailAddress = "tobias.happ@deutschebahn.com"; | ||
}; | ||
}; | ||
|
||
wm.yabai.enable = true; | ||
}; | ||
|
||
home = { | ||
homeDirectory = "/Users/tobiashapp"; | ||
username = "tobiashapp"; | ||
|
||
packages = with pkgs; [ | ||
coreutils | ||
nixpkgs-fmt | ||
nodejs | ||
]; | ||
}; | ||
|
||
programs.zsh.initExtra = lib.mkAfter '' | ||
source <(kubectl completion zsh) | ||
''; | ||
} |