Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start to manage macOS specific configurations #240

Merged
merged 6 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ dist/
tmp/

.direnv

# macOS
**/AppSupport
18 changes: 18 additions & 0 deletions home-manager/darwin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ pkgs, ... }:

# condition branch as `if pkgs.stdenv.hostPlatform.isDarwin then` will not work, but having the config even in Linux okay for me.
{
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"
);
}
1 change: 1 addition & 0 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
./zsh.nix
./fish.nix
./git.nix
./darwin.nix
];

home.username = lib.mkDefault "kachick";
Expand Down
Loading