all repos — nixfiles @ b6b6ab2b31cd91cdad09964b9db75c3840f08790

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

re-format

Alan Pearce
commit

b6b6ab2b31cd91cdad09964b9db75c3840f08790

parent

9a780356346bd45a60358bf1b54e875a70082cb5

1 file changed, 14 insertions(+), 21 deletions(-)

jump to
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -62,27 +62,20 @@ RunAtLoad = true;
KeepAlive = false; ProgramArguments = [ "/bin/sh" - ( - toString - ( - 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" - if pgrep -q Emacs; then - $emacsclient --eval "(my/switch-theme-variant '$MODE)" - fi - '' - ) - ) - ) + (toString (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" + if pgrep -q Emacs; then + $emacsclient --eval "(my/switch-theme-variant '$MODE)" + fi + '' + )) ]; }; };