feat: Added ghostty

This commit is contained in:
uttarayan21
2025-01-15 20:11:48 +05:30
parent de6a661882
commit 2352b28566
5 changed files with 26 additions and 47 deletions

View File

@@ -1,28 +0,0 @@
{
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.programs.ghostty;
# tomlFormat = pkgs.formats.toml {};
inherit (lib.generatros) toKeyValue mkKeyValueDefault;
in {
options = {
programs.ghostty = {
enable = mkEnableOption "ghostty";
package = mkPackageOption pkgs "ghostty" {};
settings = lib.mkOption {
type = tomlFormat.type;
description = "Options";
};
};
};
config = {
xdg.configFile."ghostty/config".source =
tomlFormat.generate "config" cfg.settings;
};
}