summaryrefslogtreecommitdiff
path: root/shared/home-manager/iterm2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shared/home-manager/iterm2/default.nix')
-rw-r--r--shared/home-manager/iterm2/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/shared/home-manager/iterm2/default.nix b/shared/home-manager/iterm2/default.nix
new file mode 100644
index 0000000..b6a9ecc
--- /dev/null
+++ b/shared/home-manager/iterm2/default.nix
@@ -0,0 +1,22 @@
+# This file configures iterm2. Note that the actual definition of iTerm2 for
+# home-manager is in `modules/home-manager/iterm2`. *That* file declares
+# `options.programs.iterm2.enable`.
+{pkgs, ...}: {
+ config = {
+ home.packages = with pkgs; [imgcat];
+
+ # Install a script which automatically makes iTerm2 match the system-wide light/dark mode.
+ home.file."/Library/Application Support/iTerm2/Scripts/AutoLaunch/auto_theme.py".text = builtins.readFile ./auto_theme.py;
+
+ programs.iterm2 = {
+ enable = true;
+ # config = {
+ # # Use the minimal tab style.
+ # # See: https://github.com/gnachman/iTerm2/blob/bd40fba0611fa94684dadf2478625f2a93eb6e47/sources/iTermPreferences.h#L29
+ # TabStyleWithAutomaticOption = 5;
+ # };
+
+ shellIntegration.enableZshIntegration = true;
+ };
+ };
+}