From e0f0a7736c2089936d67cf484e9058e646e82458 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 2 Aug 2023 20:29:16 +0900 Subject: [PATCH] Start to manage darwin specific dependencies --- .gitignore | 3 + home-manager/darwin.nix | 6 + home-manager/home.nix | 7 +- .../iterm2/com.googlecode.iterm2.plist | 933 ++++++++++++++++++ 4 files changed, 948 insertions(+), 1 deletion(-) create mode 100644 home-manager/darwin.nix create mode 100644 home/.config/iterm2/com.googlecode.iterm2.plist diff --git a/.gitignore b/.gitignore index cada4797..439a7846 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ dist/ tmp/ .direnv + +# macOS +**/AppSupport diff --git a/home-manager/darwin.nix b/home-manager/darwin.nix new file mode 100644 index 00000000..df41e7d0 --- /dev/null +++ b/home-manager/darwin.nix @@ -0,0 +1,6 @@ +{ ... }: + +# https://github.com/nix-community/home-manager/blob/master/modules/programs/lazygit.nix +{ + xdg.configFile."iterm2/com.googlecode.iterm2.plist".source = ../home/.config/iterm2/com.googlecode.iterm2.plist; +} diff --git a/home-manager/home.nix b/home-manager/home.nix index 403b971d..990a3693 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -10,7 +10,12 @@ ./zsh.nix ./fish.nix ./git.nix - ]; + ] ++ ( + if pkgs.stdenv.hostPlatform.isDarwin then + [ ./darwin.nix ] + else + [ ] + ); home.username = lib.mkDefault "kachick"; # TODO: How to cover lima? The default is /home/kachick.local diff --git a/home/.config/iterm2/com.googlecode.iterm2.plist b/home/.config/iterm2/com.googlecode.iterm2.plist new file mode 100644 index 00000000..fa38bef4 --- /dev/null +++ b/home/.config/iterm2/com.googlecode.iterm2.plist @@ -0,0 +1,933 @@ + + + + + AppleAntiAliasingThreshold + 1 + ApplePressAndHoldEnabled + + AppleScrollAnimationEnabled + 0 + AppleSmoothFixedFontsSizeThreshold + 1 + AppleWindowTabbingMode + manual + Custom Color Presets + + Japanesque + + Ansi 0 Color + + Blue Component + 0.20856963098049164 + Green Component + 0.22283002734184265 + Red Component + 0.20568123459815979 + + Ansi 1 Color + + Blue Component + 0.38021323084831238 + Green Component + 0.24660280346870422 + Red Component + 0.81089001893997192 + + Ansi 10 Color + + Blue Component + 0.17100538313388824 + Green Component + 0.49610027670860291 + Red Component + 0.46425256133079529 + + Ansi 11 Color + + Blue Component + 0.1833186000585556 + Green Component + 0.35025951266288757 + Red Component + 0.46875584125518799 + + Ansi 12 Color + + Blue Component + 0.47479093074798584 + Green Component + 0.34725069999694824 + Red Component + 0.074933364987373352 + + Ansi 13 Color + + Blue Component + 0.56739711761474609 + Green Component + 0.25756442546844482 + Red Component + 0.37626489996910095 + + Ansi 14 Color + + Blue Component + 0.79221165180206299 + Green Component + 0.73511248826980591 + Red Component + 0.46331635117530823 + + Ansi 15 Color + + Blue Component + 0.68263441324234009 + Green Component + 0.71090340614318848 + Red Component + 0.6965288519859314 + + Ansi 2 Color + + Blue Component + 0.35710996389389038 + Green Component + 0.71854472160339355 + Red Component + 0.48304364085197449 + + Ansi 3 Color + + Blue Component + 0.16496320068836212 + Green Component + 0.70341014862060547 + Red Component + 0.91225624084472656 + + Ansi 4 Color + + Blue Component + 0.82943236827850342 + Green Component + 0.60329484939575195 + Red Component + 0.29914027452468872 + + Ansi 5 Color + + Blue Component + 0.76894307136535645 + Green Component + 0.49908417463302612 + Red Component + 0.64749133586883545 + + Ansi 6 Color + + Blue Component + 0.67739421129226685 + Green Component + 0.60572487115859985 + Red Component + 0.22138151526451111 + + Ansi 7 Color + + Blue Component + 0.96549803018569946 + Green Component + 0.98070180416107178 + Red Component + 0.98026049137115479 + + Ansi 8 Color + + Blue Component + 0.34851333498954773 + Green Component + 0.3565424382686615 + Red Component + 0.34871619939804077 + + Ansi 9 Color + + Blue Component + 0.651419997215271 + Green Component + 0.55888265371322632 + Red Component + 0.81987529993057251 + + Background Color + + Blue Component + 0.11759774386882782 + Green Component + 0.11759574711322784 + Red Component + 0.11759926378726959 + + Bold Color + + Blue Component + 0.98028081655502319 + Green Component + 1 + Red Component + 1 + + Cursor Color + + Blue Component + 0.31030187010765076 + Green Component + 0.81186991930007935 + Red Component + 0.92885816097259521 + + Cursor Text Color + + Blue Component + 0.20856963098049164 + Green Component + 0.22283002734184265 + Red Component + 0.20568123459815979 + + Foreground Color + + Blue Component + 0.9264865517616272 + Green Component + 0.96665072441101074 + Red Component + 0.97033727169036865 + + Selected Text Color + + Blue Component + 0.9264865517616272 + Green Component + 0.96665072441101074 + Red Component + 0.97033727169036865 + + Selection Color + + Blue Component + 0.46659797430038452 + Green Component + 0.34349527955055237 + Red Component + 0.089366093277931213 + + + + Default Bookmark Guid + F0A75BE8-90F9-4262-AB1A-56D8ECAF7055 + HapticFeedbackForEsc + + Hotkey + + HotkeyChar + 32 + HotkeyCode + 49 + HotkeyMigratedFromSingleToMulti + + HotkeyModifiers + 524288 + New Bookmarks + + + ASCII Anti Aliased + + Ambiguous Double Width + + Ansi 0 Color + + Blue Component + 0.20856963098049164 + Green Component + 0.22283002734184265 + Red Component + 0.20568123459815979 + + Ansi 1 Color + + Blue Component + 0.38021323084831238 + Green Component + 0.24660280346870422 + Red Component + 0.81089001893997192 + + Ansi 10 Color + + Blue Component + 0.17100538313388824 + Green Component + 0.49610027670860291 + Red Component + 0.46425256133079529 + + Ansi 11 Color + + Blue Component + 0.1833186000585556 + Green Component + 0.35025951266288757 + Red Component + 0.46875584125518799 + + Ansi 12 Color + + Blue Component + 0.47479093074798584 + Green Component + 0.34725069999694824 + Red Component + 0.074933364987373352 + + Ansi 13 Color + + Blue Component + 0.56739711761474609 + Green Component + 0.25756442546844482 + Red Component + 0.37626489996910095 + + Ansi 14 Color + + Blue Component + 0.79221165180206299 + Green Component + 0.73511248826980591 + Red Component + 0.46331635117530823 + + Ansi 15 Color + + Blue Component + 0.68263441324234009 + Green Component + 0.71090340614318848 + Red Component + 0.6965288519859314 + + Ansi 2 Color + + Blue Component + 0.35710996389389038 + Green Component + 0.71854472160339355 + Red Component + 0.48304364085197449 + + Ansi 3 Color + + Blue Component + 0.16496320068836212 + Green Component + 0.70341014862060547 + Red Component + 0.91225624084472656 + + Ansi 4 Color + + Blue Component + 0.82943236827850342 + Green Component + 0.60329484939575195 + Red Component + 0.29914027452468872 + + Ansi 5 Color + + Blue Component + 0.76894307136535645 + Green Component + 0.49908417463302612 + Red Component + 0.64749133586883545 + + Ansi 6 Color + + Blue Component + 0.67739421129226685 + Green Component + 0.60572487115859985 + Red Component + 0.22138151526451111 + + Ansi 7 Color + + Blue Component + 0.96549803018569946 + Green Component + 0.98070180416107178 + Red Component + 0.98026049137115479 + + Ansi 8 Color + + Blue Component + 0.34851333498954773 + Green Component + 0.3565424382686615 + Red Component + 0.34871619939804077 + + Ansi 9 Color + + Blue Component + 0.651419997215271 + Green Component + 0.55888265371322632 + Red Component + 0.81987529993057251 + + BM Growl + + Background Color + + Blue Component + 0.11759774386882782 + Green Component + 0.11759574711322784 + Red Component + 0.11759926378726959 + + Background Image Location + + Background Image Mode + 0 + Badge Color + + Alpha Component + 0.5 + Blue Component + 0.0 + Color Space + sRGB + Green Component + 0.14910027384757996 + Red Component + 1 + + Blend + 0.50089996780174373 + Blinking Cursor + + Blur + + Bold Color + + Blue Component + 0.98028081655502319 + Green Component + 1 + Red Component + 1 + + Character Encoding + 4 + Close Sessions On End + + Columns + 80 + Command + + Cursor Color + + Blue Component + 0.31030187010765076 + Green Component + 0.81186991930007935 + Red Component + 0.92885816097259521 + + Cursor Guide Color + + Alpha Component + 0.25 + Blue Component + 1 + Color Space + sRGB + Green Component + 0.92681378126144409 + Red Component + 0.70214027166366577 + + Cursor Text Color + + Blue Component + 0.20856963098049164 + Green Component + 0.22283002734184265 + Red Component + 0.20568123459815979 + + Custom Command + No + Custom Directory + No + Default Bookmark + No + Description + Default + Disable Window Resizing + + Flashing Bell + + Foreground Color + + Blue Component + 0.9264865517616272 + Green Component + 0.96665072441101074 + Red Component + 0.97033727169036865 + + Guid + F0A75BE8-90F9-4262-AB1A-56D8ECAF7055 + Horizontal Spacing + 1 + Idle Code + 0 + Jobs to Ignore + + rlogin + ssh + slogin + telnet + + Keyboard Map + + 0x2d-0x40000 + + Action + 11 + Text + 0x1f + + 0x32-0x40000 + + Action + 11 + Text + 0x00 + + 0x33-0x40000 + + Action + 11 + Text + 0x1b + + 0x34-0x40000 + + Action + 11 + Text + 0x1c + + 0x35-0x40000 + + Action + 11 + Text + 0x1d + + 0x36-0x40000 + + Action + 11 + Text + 0x1e + + 0x37-0x40000 + + Action + 11 + Text + 0x1f + + 0x38-0x40000 + + Action + 11 + Text + 0x7f + + 0xf700-0x220000 + + Action + 10 + Text + [1;2A + + 0xf700-0x240000 + + Action + 10 + Text + [1;5A + + 0xf700-0x260000 + + Action + 10 + Text + [1;6A + + 0xf700-0x280000 + + Action + 11 + Text + 0x1b 0x1b 0x5b 0x41 + + 0xf701-0x220000 + + Action + 10 + Text + [1;2B + + 0xf701-0x240000 + + Action + 10 + Text + [1;5B + + 0xf701-0x260000 + + Action + 10 + Text + [1;6B + + 0xf701-0x280000 + + Action + 11 + Text + 0x1b 0x1b 0x5b 0x42 + + 0xf702-0x220000 + + Action + 10 + Text + [1;2D + + 0xf702-0x240000 + + Action + 10 + Text + [1;5D + + 0xf702-0x260000 + + Action + 10 + Text + [1;6D + + 0xf702-0x280000 + + Action + 11 + Text + 0x1b 0x1b 0x5b 0x44 + + 0xf703-0x220000 + + Action + 10 + Text + [1;2C + + 0xf703-0x240000 + + Action + 10 + Text + [1;5C + + 0xf703-0x260000 + + Action + 10 + Text + [1;6C + + 0xf703-0x280000 + + Action + 11 + Text + 0x1b 0x1b 0x5b 0x43 + + 0xf704-0x20000 + + Action + 10 + Text + [1;2P + + 0xf705-0x20000 + + Action + 10 + Text + [1;2Q + + 0xf706-0x20000 + + Action + 10 + Text + [1;2R + + 0xf707-0x20000 + + Action + 10 + Text + [1;2S + + 0xf708-0x20000 + + Action + 10 + Text + [15;2~ + + 0xf709-0x20000 + + Action + 10 + Text + [17;2~ + + 0xf70a-0x20000 + + Action + 10 + Text + [18;2~ + + 0xf70b-0x20000 + + Action + 10 + Text + [19;2~ + + 0xf70c-0x20000 + + Action + 10 + Text + [20;2~ + + 0xf70d-0x20000 + + Action + 10 + Text + [21;2~ + + 0xf70e-0x20000 + + Action + 10 + Text + [23;2~ + + 0xf70f-0x20000 + + Action + 10 + Text + [24;2~ + + 0xf729-0x20000 + + Action + 10 + Text + [1;2H + + 0xf729-0x40000 + + Action + 10 + Text + [1;5H + + 0xf72b-0x20000 + + Action + 10 + Text + [1;2F + + 0xf72b-0x40000 + + Action + 10 + Text + [1;5F + + + Link Color + + Alpha Component + 1 + Blue Component + 0.73422712087631226 + Color Space + sRGB + Green Component + 0.35915297269821167 + Red Component + 0.0 + + Mouse Reporting + + Name + Default + Non Ascii Font + Monaco 12 + Non-ASCII Anti Aliased + + Normal Font + Menlo-Regular 12 + Option Key Sends + 0 + Prompt Before Closing 2 + + Right Option Key Sends + 0 + Rows + 25 + Screen + -1 + Scrollback Lines + 1000 + Selected Text Color + + Blue Component + 0.9264865517616272 + Green Component + 0.96665072441101074 + Red Component + 0.97033727169036865 + + Selection Color + + Blue Component + 0.46659797430038452 + Green Component + 0.34349527955055237 + Red Component + 0.089366093277931213 + + Send Code When Idle + + Shortcut + + Silence Bell + + Sync Title + + Tags + + Terminal Type + xterm-256color + Transparency + 0.15031527601522843 + Unlimited Scrollback + + Use Bold Font + + Use Bright Bold + + Use Italic Font + + Use Non-ASCII Font + + Vertical Spacing + 1 + Visual Bell + + Window Type + 0 + Working Directory + /Users/kachick + + + OpenArrangementAtStartup + + OpenNoWindowsAtStartup + + PMPrintingExpandedStateForPrint2 + + PointerActions + + Button,1,1,, + + Action + kContextMenuPointerAction + + Button,2,1,, + + Action + kPasteFromClipboardPointerAction + + Gesture,ThreeFingerSwipeDown,, + + Action + kPrevWindowPointerAction + + Gesture,ThreeFingerSwipeLeft,, + + Action + kPrevTabPointerAction + + Gesture,ThreeFingerSwipeRight,, + + Action + kNextTabPointerAction + + Gesture,ThreeFingerSwipeUp,, + + Action + kNextWindowPointerAction + + + Print In Black And White + + ShowFullScreenTabBar + + SoundForEsc + + UseLionStyleFullscreen + + VisualIndicatorForEsc + + WordCharacters + /-+\~_. + findMode_iTerm + 0 + +