feat: Added ghostty

This commit is contained in:
uttarayan21
2025-01-05 18:45:35 +05:30
parent 77fe7cc116
commit 974fbca379
6 changed files with 216 additions and 55 deletions

28
modules/ghostty.nix Normal file
View File

@@ -0,0 +1,28 @@
{
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;
};
}