feat: macOS - adjust terminal's font size, starship for zsh, squirrel input method

This commit is contained in:
Ryan Yin
2023-07-17 15:59:31 +08:00
parent de1bc12b1b
commit 7b482f8cfa
5 changed files with 12 additions and 5 deletions

View File

@@ -64,7 +64,7 @@
family: JetBrainsMono Nerd Font
'' + (if pkgs.stdenv.isDarwin then ''
# Point size
size: 16
size: 14
shell: # force nushell as default shell on macOS
program: /run/current-system/sw/bin/nu
'' else ''

View File

@@ -5,7 +5,7 @@
font = {
name = "JetBrainsMono Nerd Font";
# use different font size on macOS
size = if pkgs.stdenv.isDarwin then 16 else 13;
size = if pkgs.stdenv.isDarwin then 14 else 13;
};
settings = {

View File

@@ -1,8 +1,9 @@
{ config, ... }: {
{ ... }: {
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableNushellIntegration = true;
settings = {

View File

@@ -1,6 +1,11 @@
{ pkgs, ... }:
{ lib, pkgs, ... }:
{
# remove existing rime data (squirrel)
home.activation.removeExistingRimeData = lib.hm.dag.entryBefore [ "checkLinkTargets" ] ''
rm -rf "~/Library/Rime/build/flypy.prism.bin"
'';
# Squirrel Input Method
home.file."Library/Rime" = {
# my custom squirrel data (flypy input method)

View File

@@ -47,7 +47,8 @@
};
};
# activationScripts are executed every time you boot the system or run `nixos-rebuild` / `darwin-rebuild`.
# activationScripts are executed every time you run `nixos-rebuild` / `darwin-rebuild`.
# but not when you reboot the system, so currently you need to run those commands manually after reboot...
system.activationScripts.postUserActivation.text = ''
sudo chmod 644 /etc/agenix/alias-for-work.nushell
sudo chmod 644 /etc/agenix/alias-for-work.bash