summaryrefslogtreecommitdiff
path: root/hosts/muhammed/home/iterm2/default.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-02-20 19:00:53 +0100
committerLinnnus <[email protected]>2024-02-20 19:01:44 +0100
commit274e08f50faffe1b8e4a760811b0a12450eae719 (patch)
tree393449e81f21b6f6b1ea7a701cef0f740cc3b757 /hosts/muhammed/home/iterm2/default.nix
parent1bbdd3f63a9d8c46b1772cbf2ad9fd83d7ef213b (diff)
Merge 'reorg' into 'main'
This patch moves in the reorganizational work done on the reorg branch, mainly: * Move host-specific modules into hosts/<host>/<module> * Break up HM config See the reorg branch for the individual commits.
Diffstat (limited to 'hosts/muhammed/home/iterm2/default.nix')
-rw-r--r--hosts/muhammed/home/iterm2/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/hosts/muhammed/home/iterm2/default.nix b/hosts/muhammed/home/iterm2/default.nix
new file mode 100644
index 0000000..d868e57
--- /dev/null
+++ b/hosts/muhammed/home/iterm2/default.nix
@@ -0,0 +1,26 @@
+# 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,
+ lib,
+ ...
+}: let
+ inherit (lib) mkIf;
+ inherit (pkgs.stdenv) isDarwin;
+in {
+ config = mkIf isDarwin {
+ home.packages = with pkgs; [imgcat];
+
+ 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;
+ };
+ };
+}