dotfiles/nix/modules/home-manager/features/desktop/ghostty.nix

26 lines
414 B
Nix
Raw Normal View History

2024-12-31 01:12:57 +00:00
{
config,
inputs,
lib,
2025-01-04 16:11:51 +00:00
self,
2024-12-31 01:12:57 +00:00
system,
...
}:
with lib;
let
cfg = config.features.desktop.ghostty;
pkgs-master = inputs.nixpkgs-master.legacyPackages.${system};
in
{
options.features.desktop.ghostty.enable = mkEnableOption "Enable ghostty";
config = mkIf cfg.enable {
home.packages = [ pkgs-master.ghostty ];
2025-01-04 16:11:51 +00:00
xdg.configFile."ghostty/config".source = "${self}/ghostty/config";
2024-12-31 01:12:57 +00:00
};
}