snowflake/user/terminals.nix
2025-06-06 17:30:41 +08:00

36 lines
681 B
Nix

{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
cfg = config.terminals;
in
{
imports = [
./subs/ghostty.nix
./subs/alacritty.nix
./subs/foot.nix
];
options.terminals = {
ghostty.enable = mkOption {
default = true;
type = types.bool;
};
alacritty.enable = mkOption {
default = true;
type = types.bool;
};
xfceTerminal.enable = mkOption {
default = false;
type = types.bool;
};
};
config = {
subs.ghostty.enable = cfg.ghostty.enable;
subs.alacritty.enable = cfg.alacritty.enable;
home.packages = mkIf cfg.xfceTerminal.enable [ pkgs.xfce.xfce4-terminal ];
};
}