Kitty/zh-cn: Difference between revisions

ZhX589 (talk | contribs)
Created page with "如果您正在使用 Home Manager,可以通过一个简单的配置启用 Kitty:"
ZhX589 (talk | contribs)
Created page with "{{Expansion|reason=此章节不完整,需要详细的故障排除步骤}}"
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
==== System setup ====
==== System setup ====


要安装 Kitty,可将其添加到系统级的 `/etc/nixos/configuration.nix` 中的 `environment.systemPackages`,或添加到用户级的 `~/.config/nixpkgs/home.nix` 中的 `home.packages`。<ref>https://nixos.org/manual/nixos/stable/</ref>
要安装 Kitty,可将其添加到系统级的 <code>/etc/nixos/configuration.nix</code> 中的 <code>environment.systemPackages</code>,或添加到用户级的 <code>~/.config/nixpkgs/home.nix</code> 中的 <code>home.packages</code>。<ref>https://nixos.org/manual/nixos/stable/</ref>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
# System-wide installation (in /etc/nixos/configuration.nix)
# System-wide installation (in /etc/nixos/configuration.nix)
Line 52: Line 52:
==== Advanced ====
==== Advanced ====


<div lang="en" dir="ltr" class="mw-content-ltr">
对于更高级的 Home Manager 配置,您可以指定各种 Kitty 设置:
For more advanced Home Manager configuration, you can specify various Kitty settings:
</div>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
programs.kitty = lib.mkForce {
programs.kitty = lib.mkForce {
Line 95: Line 93:
== Tips and tricks ==
== Tips and tricks ==


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Theming_with_Stylix"></span>
=== Theming with Stylix ===
=== 使用 Stylix 进行主题化 ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
您可以使用 Stylix 通过启用其内置集成来为 Kitty 设置主题:
You can use [[Stylix]]<ref>https://github.com/nix-community/stylix</ref> to theme Kitty by enabling its built-in integration:<ref>https://nix-community.github.io/stylix/options/modules/kitty.html#stylixtargetskittyenable</ref>
</div>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
stylix.targets.kitty.enable = true;
stylix.targets.kitty.enable = true;
Line 108: Line 103:
== Troubleshooting ==
== Troubleshooting ==


<div lang="en" dir="ltr" class="mw-content-ltr">
{{Expansion|reason=此章节不完整,需要详细的故障排除步骤}}
{{Expansion|reason=Section incomplete, needs detailed troubleshooting steps}}
</div>


== References ==
== References ==