Newer
Older
terminal = pkgs.writeScriptBin "terminal" ''
PROMPT_NO_INITIAL_NEWLINE=1 ${config.queezle.terminal.executable} "$@"
terminal2 = pkgs.writeScriptBin "terminal2" ''
PROMPT_NO_INITIAL_NEWLINE=1 ${config.queezle.terminal.alt.executable} "$@"
'';
terminal-floating = pkgs.writeScriptBin "terminal-floating" ''
PROMPT_NO_INITIAL_NEWLINE=1 ${config.queezle.terminal.executable} --app-id terminal-floating "$@"
'';
queezle.terminal.enable = mkOption {
type = types.bool;
default = false;
description = "Install a 'terminal' and 'terminal2' wrapper script that launches the configured terminal emulator.";
type = types.path;
default = "${pkgs.foot}/bin/footclient";
};
queezle.terminal.alt.executable = mkOption {
default = if config.queezle.terminal.forceSoftwareRenderer then "${pkgs.foot}/bin/foot" else "${pkgs.kitty}/bin/kitty";
};
queezle.terminal.forceSoftwareRenderer = mkOption {
type = types.bool;
default = false;
};
};
environment.systemPackages = [
terminal
terminal2
pkgs.foot
] ++ optional (!config.queezle.terminal.forceSoftwareRenderer) pkgs.kitty;