diff options
Diffstat (limited to 'user/settings')
-rw-r--r-- | user/settings/darwin.nix | 17 | ||||
-rw-r--r-- | user/settings/development/base.nix | 6 | ||||
-rw-r--r-- | user/settings/development/web.nix | 1 | ||||
-rw-r--r-- | user/settings/emacs.nix | 2 | ||||
-rw-r--r-- | user/settings/kitty.nix | 33 | ||||
-rw-r--r-- | user/settings/user-interface.nix | 2 |
6 files changed, 41 insertions, 20 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix index 1ea3d470..496ab9a7 100644 --- a/user/settings/darwin.nix +++ b/user/settings/darwin.nix @@ -9,9 +9,7 @@ less ]; - programs.emacs.package = pkgs.emacs29.overrideAttrs (old: { - NIX_CFLAGS_COMPILE = (old.NIX_CFLAGS_COMPILE or "") + " -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"; - }); + programs.emacs.package = pkgs.personal.emacs-unlimited-select; home.file.".hushlogin".text = ""; @@ -66,6 +64,7 @@ ( pkgs.writeShellScript "toggle-dark-light-mode" + ( '' wait4path /nix if defaults read -g AppleInterfaceStyle &>/dev/null ; then @@ -74,7 +73,6 @@ MODE="light" fi emacsclient="${config.programs.emacs.finalPackage}/bin/emacsclient" - kitty="${pkgs.kitty}/bin/kitty +kitten themes --config-file-name=theme.conf --reload-in=all --cache-age=-1" emacsSwitchTheme () { if pgrep -q Emacs; then if [[ $MODE == "dark" ]]; then @@ -88,18 +86,9 @@ fi fi } - kittySwitchTheme () { - if pgrep -q kitty; then - if [[ $MODE == "dark" ]]; then - $kitty 'Modus Vivendi' - elif [[ $MODE == "light" ]]; then - $kitty 'Modus Operandi' - fi - fi - } emacsSwitchTheme - kittySwitchTheme '' + ) ) ) ]; diff --git a/user/settings/development/base.nix b/user/settings/development/base.nix index b0d23147..a454bc11 100644 --- a/user/settings/development/base.nix +++ b/user/settings/development/base.nix @@ -27,17 +27,17 @@ watchexec entr + litecli + diffoscopeMinimal skopeo docker-credential-helpers dive - ] ++ (if stdenv.isDarwin then [ + ] ++ (lib.optionals stdenv.isDarwin [ lima colima docker-client - ] else [ - httping ]); home.sessionVariables = { diff --git a/user/settings/development/web.nix b/user/settings/development/web.nix index e4d9d02c..24da1604 100644 --- a/user/settings/development/web.nix +++ b/user/settings/development/web.nix @@ -11,7 +11,6 @@ flyctl prettierd personal.htmlformat - nodePackages.vercel ]); home.shellAliases = { # 0.2.25 current completion command only affects `flyctl`, although `fly` is a link to `flyctl` diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index 73a3b55a..f0a0a0ee 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -74,6 +74,7 @@ in cape clojure-mode cask-mode + chatgpt-shell corfu consult consult-dir @@ -156,6 +157,7 @@ in treemacs-nerd-icons treesit-grammars.with-all-grammars treesit-auto + try vc-msg vertico vertico-prescient diff --git a/user/settings/kitty.nix b/user/settings/kitty.nix index 8a06a820..c80c5fbd 100644 --- a/user/settings/kitty.nix +++ b/user/settings/kitty.nix @@ -1,4 +1,5 @@ -{ pkgs +{ config +, pkgs , ... }: { @@ -24,4 +25,34 @@ include ~/.config/kitty/theme.conf ''; }; + launchd.agents.kitty-dark-light = { + enable = true; + config = { + WatchPaths = [ "${config.home.homeDirectory}/Library/Preferences/.GlobalPreferences.plist" ]; + StandardOutputPath = "/dev/null"; + StandardErrorPath = "/dev/null"; + 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 + kitty="${pkgs.kitty}/bin/kitty +kitten themes --config-file-name=theme.conf --reload-in=all --cache-age=-1" + if pgrep -q kitty; then + if [[ $MODE == "dark" ]]; then + $kitty 'Modus Vivendi' + elif [[ $MODE == "light" ]]; then + $kitty 'Modus Operandi' + fi + fi + '' + )) + ]; + }; + }; } diff --git a/user/settings/user-interface.nix b/user/settings/user-interface.nix index 0bf59af9..70c9392e 100644 --- a/user/settings/user-interface.nix +++ b/user/settings/user-interface.nix @@ -7,7 +7,7 @@ let in { imports = [ - ./kitty.nix + # ./kitty.nix ]; services.ssh-agent = { |