Files
dotfiles/modules/ghostty.nix
2025-01-05 18:45:35 +05:30

29 lines
549 B
Nix

{
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;
};
}