-
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.
Start to manage macOS specific configurations (#240)
* Start to manage darwin specific dependencies * Fix wrong? condition, and dynamic import of color schema * Update from fakehash * Update iterm2 config after imported and enabled OneHalfDark Why modified even in another schema...? * Add note * Fix condition branch and merging for darwin
- Loading branch information
Showing
5 changed files
with
1,392 additions
and
4 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 |
---|---|---|
|
@@ -11,3 +11,6 @@ dist/ | |
tmp/ | ||
|
||
.direnv | ||
|
||
# macOS | ||
**/AppSupport |
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 @@ | ||
{ pkgs, lib, ... }: | ||
|
||
# FAQ | ||
# | ||
# A. can not found dot files in macOS finder | ||
# Q. https://apple.stackexchange.com/a/250646, consider to use nix-darwin | ||
# https://github.com/LnL7/nix-darwin/blob/16c07487ac9bc59f58b121d13160c67befa3342e/modules/system/defaults/finder.nix#L8-L14 | ||
|
||
# https://github.com/nix-community/home-manager/issues/414#issuecomment-427163925 | ||
lib.mkMerge [ | ||
(lib.mkIf pkgs.stdenv.isDarwin { | ||
xdg.configFile."iterm2/com.googlecode.iterm2.plist".source = ../home/.config/iterm2/com.googlecode.iterm2.plist; | ||
|
||
# Just putting the refererenced file to easy import, applying should be done via GUI and saving to plist | ||
xdg.configFile."iterm2/OneHalfDark.itermcolors".text = builtins.readFile ( | ||
pkgs.fetchFromGitHub | ||
{ | ||
owner = "mbadolato"; | ||
repo = "iTerm2-Color-Schemes"; | ||
rev = "3f8a0791ed9a99c10054026c1a8285459117e0f2"; | ||
sha256 = "sha256-ixryDwSNdVtD1H+V72V+hbFiL/JNLU4qpKXWflPQwrQ="; | ||
} | ||
+ "/schemes/OneHalfDark.itermcolors" | ||
); | ||
}) | ||
] |
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
Oops, something went wrong.