mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-24 02:11:29 +01:00
feat: macOS - adjust terminal's font size, starship for zsh, squirrel input method
This commit is contained in:
@@ -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 ''
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ config, ... }: {
|
||||
{ ... }: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
enableNushellIntegration = true;
|
||||
|
||||
settings = {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user