mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-05 03:56:19 +01:00
Each of these overrode a value nothing else set at a higher priority: - qemu-guest: btrbk, hardwareTools and cloud-init have no competing definition on the guests. - mdns: nixpkgs' sunshine module sets avahi.publish.* with mkDefault. - computer-use: i18n now sets the time zone with mkDefault. - darwin terminal: the shared ghostty/kitty font sizes are now mkDefault. - shoukei: sunshine is mkDefault false in remote-desktop.nix, zram's memoryPercent is mkDefault 50; supportedFilesystems now merges instead of discarding the fsType entries other modules add. - youko: nothing enables docker. - nixpak: pasta.enable and sockets.pipewire are mkDefault in the shared modules, sockets.pulse already was. Every NixOS host's toplevel drvPath is unchanged; on fern and frieren the terminal font sizes and time zone evaluate to the same values. Assisted-by: Claude Code (claude-opus-5-5)
47 lines
1.4 KiB
Nix
47 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
###########################################################
|
|
#
|
|
# Ghostty Configuration
|
|
#
|
|
# TUIOS provides tabs, panes, scrollback and copy mode, so ghostty
|
|
# only needs a font, transparency and the kitty graphics protocol
|
|
# (built in).
|
|
#
|
|
###########################################################
|
|
{
|
|
programs.ghostty = {
|
|
enable = true;
|
|
package =
|
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
|
null # installed via Homebrew cask on darwin
|
|
else
|
|
pkgs.ghostty;
|
|
enableBashIntegration = false;
|
|
installBatSyntax = false;
|
|
settings = {
|
|
font-family = "Maple Mono NF CN";
|
|
font-size = lib.mkDefault 13; # macOS overrides this in home/darwin/terminal.nix
|
|
|
|
# hide title bar/header bar (Linux only; on macOS it would remove the traffic lights too)
|
|
window-decoration = pkgs.stdenv.hostPlatform.isDarwin;
|
|
|
|
# transparency
|
|
background-opacity = 0.85;
|
|
background-blur-radius = 10; # macOS only
|
|
|
|
# Start fullscreen on macOS; window managers control this on Linux.
|
|
fullscreen = pkgs.stdenv.hostPlatform.isDarwin;
|
|
|
|
# To resolve issues:
|
|
# 1. https://github.com/ryan4yin/nix-config/issues/26
|
|
# 2. https://github.com/ryan4yin/nix-config/issues/8
|
|
# Spawn a nushell in login mode via `bash`
|
|
command = "${pkgs.bash}/bin/bash --login -c 'nu --login --interactive'";
|
|
};
|
|
};
|
|
}
|