mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02: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
|
family: JetBrainsMono Nerd Font
|
||||||
'' + (if pkgs.stdenv.isDarwin then ''
|
'' + (if pkgs.stdenv.isDarwin then ''
|
||||||
# Point size
|
# Point size
|
||||||
size: 16
|
size: 14
|
||||||
shell: # force nushell as default shell on macOS
|
shell: # force nushell as default shell on macOS
|
||||||
program: /run/current-system/sw/bin/nu
|
program: /run/current-system/sw/bin/nu
|
||||||
'' else ''
|
'' else ''
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
font = {
|
font = {
|
||||||
name = "JetBrainsMono Nerd Font";
|
name = "JetBrainsMono Nerd Font";
|
||||||
# use different font size on macOS
|
# 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 = {
|
settings = {
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{ config, ... }: {
|
{ ... }: {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
|
|
||||||
settings = {
|
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
|
# Squirrel Input Method
|
||||||
home.file."Library/Rime" = {
|
home.file."Library/Rime" = {
|
||||||
# my custom squirrel data (flypy input method)
|
# 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 = ''
|
system.activationScripts.postUserActivation.text = ''
|
||||||
sudo chmod 644 /etc/agenix/alias-for-work.nushell
|
sudo chmod 644 /etc/agenix/alias-for-work.nushell
|
||||||
sudo chmod 644 /etc/agenix/alias-for-work.bash
|
sudo chmod 644 /etc/agenix/alias-for-work.bash
|
||||||
|
|||||||
Reference in New Issue
Block a user