mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-04 03:26:20 +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)
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
###########################################################
|
|
#
|
|
# Kitty Configuration
|
|
#
|
|
# TUIOS provides tabs, panes, scrollback and copy mode, so kitty
|
|
# only needs a font, transparency and the kitty graphics protocol
|
|
# (built in).
|
|
#
|
|
###########################################################
|
|
{
|
|
programs.kitty = {
|
|
enable = true;
|
|
font = {
|
|
name = "Maple Mono NF CN";
|
|
size = lib.mkDefault 13; # macOS overrides this in home/darwin/terminal.nix
|
|
};
|
|
|
|
settings = {
|
|
# no title bar / window title ("titlebar-and-corners" is macOS-only)
|
|
hide_window_decorations =
|
|
if pkgs.stdenv.hostPlatform.isDarwin then "titlebar-and-corners" else "yes";
|
|
macos_show_window_title_in = "none";
|
|
|
|
# transparency
|
|
background_opacity = "0.85";
|
|
|
|
macos_option_as_alt = true; # Option key acts as Alt on macOS
|
|
enable_audio_bell = false;
|
|
|
|
# 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`
|
|
shell = "${pkgs.bash}/bin/bash --login -c 'nu --login --interactive'";
|
|
};
|
|
|
|
# macOS specific settings
|
|
darwinLaunchOptions = [ "--start-as=fullscreen" ];
|
|
};
|
|
}
|