summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2025-01-12 17:26:24 +0100
committerAlan Pearce2025-01-12 18:09:20 +0100
commit13b80fe68696193d7ad5c60748ccde00f9ea516d (patch)
tree9e535d52786097293d963af9530740198b1e7c91 /user
parentafd061bec3bc7221931119d3ea55fa808eef9dcb (diff)
downloadnixfiles-13b80fe68696193d7ad5c60748ccde00f9ea516d.tar.lz
nixfiles-13b80fe68696193d7ad5c60748ccde00f9ea516d.tar.zst
nixfiles-13b80fe68696193d7ad5c60748ccde00f9ea516d.zip
fix indentation
Diffstat (limited to 'user')
-rw-r--r--user/settings/darwin.nix44
1 files changed, 22 insertions, 22 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix
index c79fb155..6571e6d8 100644
--- a/user/settings/darwin.nix
+++ b/user/settings/darwin.nix
@@ -65,29 +65,29 @@
                 pkgs.writeShellScript
                   "toggle-dark-light-mode"
                   (
-                  ''
-                    wait4path /nix
-                    if defaults read -g AppleInterfaceStyle &>/dev/null ; then
-                      MODE="dark"
-                    else
-                      MODE="light"
-                    fi
-                    emacsclient="${config.programs.emacs.finalPackage}/bin/emacsclient"
-                    emacsSwitchTheme () {
-                      if pgrep -q Emacs; then
-                        if [[  $MODE == "dark"  ]]; then
-                            $emacsclient \
-                              --eval "(stimmung-themes-load-dark)" \
-                              --eval "(modify-all-frames-parameters '((ns-appearance '$MODE)))"
-                        elif [[  $MODE == "light"  ]]; then
-                            $emacsclient \
-                              --eval "(stimmung-themes-load-light)" \
-                              --eval "(modify-all-frames-parameters '((ns-appearance '$MODE)))"
-                        fi
+                    ''
+                      wait4path /nix
+                      if defaults read -g AppleInterfaceStyle &>/dev/null ; then
+                        MODE="dark"
+                      else
+                        MODE="light"
                       fi
-                    }
-                    emacsSwitchTheme
-                  ''
+                      emacsclient="${config.programs.emacs.finalPackage}/bin/emacsclient"
+                      emacsSwitchTheme () {
+                        if pgrep -q Emacs; then
+                          if [[  $MODE == "dark"  ]]; then
+                              $emacsclient \
+                                --eval "(stimmung-themes-load-dark)" \
+                                --eval "(modify-all-frames-parameters '((ns-appearance '$MODE)))"
+                          elif [[  $MODE == "light"  ]]; then
+                              $emacsclient \
+                                --eval "(stimmung-themes-load-light)" \
+                                --eval "(modify-all-frames-parameters '((ns-appearance '$MODE)))"
+                          fi
+                        fi
+                      }
+                      emacsSwitchTheme
+                    ''
                   )
               )
           )