helm/modules/desktop/term/st.nix
2020-03-29 01:55:14 -04:00

29 lines
718 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
options.modules.desktop.term.st = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.desktop.term.st.enable {
# xst-256color isn't supported over ssh, so revert to a known one
my.zsh.rc = ''[ "$TERM" = xst-256color ] && export TERM=xterm-256color'';
my.packages = with pkgs; [
xst # st + nice-to-have extensions
(makeDesktopItem {
name = "xst";
desktopName = "Suckless Terminal";
genericName = "Default terminal";
icon = "utilities-terminal";
exec = "${xst}/bin/xst";
categories = "Development;System;Utility";
})
];
};
}