mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 05:29:23 +08:00
21 lines
574 B
Nix
21 lines
574 B
Nix
inputs:
|
|
{
|
|
options.nixos.packages.ghostty = let inherit (inputs.lib) mkOption types; in mkOption
|
|
{ type = types.nullOr (types.submodule {}); default = {}; };
|
|
config = let inherit (inputs.config.nixos.packages) ghostty; in inputs.lib.mkIf (ghostty != null)
|
|
{
|
|
nixos =
|
|
{
|
|
user.sharedModules =
|
|
[{
|
|
config.programs.ghostty =
|
|
{
|
|
enable = true;
|
|
settings = { scrollback-limit = 100000000; keybind = "ctrl+shift+r=reset"; };
|
|
};
|
|
}];
|
|
packages.packages._packages = [ inputs.pkgs.ghostty ];
|
|
};
|
|
};
|
|
}
|