all repos — nixfiles @ 13b80fe68696193d7ad5c60748ccde00f9ea516d

System and user configuration, managed by nix and home-manager

fix indentation
Alan Pearce alan@alanpearce.eu
Sun, 12 Jan 2025 17:26:24 +0100
commit

13b80fe68696193d7ad5c60748ccde00f9ea516d

parent

afd061bec3bc7221931119d3ea55fa808eef9dcb

1 files changed, 22 insertions(+), 22 deletions(-)

jump to
M user/settings/darwin.nixuser/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
+                    ''
                   )
               )
           )