summaryrefslogtreecommitdiff
path: root/hosts/muhammed/home/iterm2/default.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-04-29 08:54:22 +0200
committerLinnnus <[email protected]>2024-04-29 08:54:22 +0200
commit16bbc166528b674751c638a6e2210b8d1d2bfa26 (patch)
treecf898bedfbf69237a890f58dc8d60feaaf1de2d3 /hosts/muhammed/home/iterm2/default.nix
parent4d1dded46c30434de31203c124327987dc45a7ad (diff)
muhammed: Make iterm2/neovim respect system dark mode
Diffstat (limited to 'hosts/muhammed/home/iterm2/default.nix')
-rw-r--r--hosts/muhammed/home/iterm2/default.nix14
1 files changed, 5 insertions, 9 deletions
diff --git a/hosts/muhammed/home/iterm2/default.nix b/hosts/muhammed/home/iterm2/default.nix
index d868e57..b6a9ecc 100644
--- a/hosts/muhammed/home/iterm2/default.nix
+++ b/hosts/muhammed/home/iterm2/default.nix
@@ -1,17 +1,13 @@
# 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 {
+{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 = {