-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
106 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.POSIX: | ||
.PHONY: default build update | ||
|
||
default: build | ||
|
||
/nix: | ||
curl -L https://nixos.org/nix/install | sh | ||
# TODO https://github.com/LnL7/nix-darwin/issues/149 | ||
sudo rm /etc/nix/nix.conf | ||
|
||
/run/current-system/sw/bin/darwin-rebuild: | ||
/nix/var/nix/profiles/default/bin/nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer | ||
yes | ./result/bin/darwin-installer | ||
|
||
/opt/homebrew/bin/brew: | ||
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh -o /tmp/brew-install.sh | ||
NONINTERACTIVE=1 bash /tmp/brew-install.sh | ||
|
||
~/.ssh/id_ed25519: | ||
ssh-keygen -t ed25519 -f "$@" | ||
|
||
~/.git: ~/.ssh/id_ed25519 | ||
cd ~ \ | ||
&& git init \ | ||
&& git config status.showUntrackedFiles no \ | ||
&& git remote add origin https://github.com/romelben/dotfiles \ | ||
&& git pull origin master \ | ||
&& git remote set-url origin git@github.com:romelben/dotfiles | ||
|
||
build: /nix /run/current-system/sw/bin/darwin-rebuild /opt/homebrew/bin/brew ~/.git | ||
/run/current-system/sw/bin/nix --experimental-features 'nix-command flakes' build ./\#darwinConfigurations.$(shell hostname -s).system | ||
./result/sw/bin/darwin-rebuild switch --flake . | ||
|
||
update: | ||
nix flake update |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
window: | ||
decorations: none | ||
startup_mode: Maximized | ||
option_as_alt: OnlyLeft | ||
|
||
scrolling: | ||
multiplier: 1 | ||
|
||
cursor: | ||
style: | ||
blinking: On | ||
|
||
font: | ||
normal: | ||
family: FiraCode Nerd Font Mono | ||
style: Regular | ||
size: 12.0 | ||
|
||
colors: | ||
normal: | ||
black: '#21252b' | ||
red: '#be5046' | ||
green: '#98c379' | ||
yellow: '#d19a66' | ||
blue: '#61afef' | ||
magenta: '#c678dd' | ||
cyan: '#56b6c2' | ||
white: '#828997' | ||
bright: | ||
black: '#5c6370' | ||
red: '#e06c75' | ||
green: '#98c379' | ||
yellow: '#e5c07b' | ||
blue: '#61afef' | ||
magenta: '#c678dd' | ||
cyan: '#56b6c2' | ||
white: '#abb2bf' | ||
primary: | ||
background: '#282c34' | ||
foreground: '#abb2bf' | ||
|
||
key_bindings: | ||
- { key: F, mods: Command|Shift, action: ToggleSimpleFullscreen } | ||
- { key: C, mods: Control|Shift, action: Copy } | ||
- { key: V, mods: Control|Shift, action: Paste } |
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,21 @@ | ||
# Fonts | ||
|
||
font_family Monaco | ||
font_size 12 | ||
|
||
# Keymaps | ||
|
||
kitty_mod cmd | ||
|
||
map cmd+c copy_to_clipboard | ||
map cmd+v paste_from_clipboard | ||
|
||
map cmd+equal change_font_size all +1.0 | ||
map cmd+minus change_font_size all -1.0 | ||
map cmd+0 change_font_size all 0 | ||
|
||
# macOS specific tweaks | ||
|
||
hide_window_decorations titlebar-only | ||
macos_option_as_alt yes | ||
macos_quit_when_last_window_closed yes |