feat: Added ghostty
This commit is contained in:
28
modules/ghostty.nix
Normal file
28
modules/ghostty.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user