mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
refactor: flake-parts
This commit is contained in:
parent
872c6be493
commit
42a1293f6d
63 changed files with 1118 additions and 875 deletions
45
users/ryan/apps/ghostty.nix
Normal file
45
users/ryan/apps/ghostty.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# SPDX-FileCopyrightText: 2025 Ryan Cao <hello@ryanccn.dev>
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
keyValue = pkgs.formats.keyValue {
|
||||
listsAsDuplicateKeys = true;
|
||||
mkKeyValue = lib.generators.mkKeyValueDefault { } " = ";
|
||||
};
|
||||
|
||||
settings = {
|
||||
theme = "catppuccin-${config.catppuccin.flavor}";
|
||||
window-colorspace = "display-p3";
|
||||
|
||||
font-family = "IBM Plex Mono";
|
||||
font-size = 14;
|
||||
font-feature = [
|
||||
"-calt"
|
||||
"-dlig"
|
||||
];
|
||||
|
||||
adjust-cell-height = "25%";
|
||||
adjust-underline-position = 5;
|
||||
|
||||
command = "/run/current-system/sw/bin/fish -l";
|
||||
|
||||
macos-option-as-alt = true;
|
||||
macos-secure-input-indication = false;
|
||||
|
||||
window-step-resize = true;
|
||||
window-padding-x = 15;
|
||||
window-padding-y = 15;
|
||||
|
||||
keybind = [ "super+backspace=text:\\x15" ];
|
||||
};
|
||||
in
|
||||
{
|
||||
xdg.configFile."ghostty/config".source = keyValue.generate "ghostty-config" settings;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue