treewide: add missing package option

Provide more customization to the binary to be installed.
This commit is contained in:
Austin Horstman 2025-03-30 11:43:00 -05:00
parent fcdd04e0f9
commit 107352dde4
27 changed files with 111 additions and 48 deletions

View file

@ -9,6 +9,8 @@ in {
programs.termite = {
enable = lib.mkEnableOption "Termite VTE-based terminal";
package = lib.mkPackageOption pkgs "termite" { nullable = true; };
allowBold = mkOption {
default = null;
type = types.nullOr types.bool;
@ -322,7 +324,7 @@ in {
optionalString = name: val:
lib.optionalString (val != null) "${name} = ${val}";
in lib.mkIf cfg.enable {
home.packages = [ pkgs.termite ];
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
xdg.configFile."termite/config".text = ''
[options]
${optionalBoolean "allow_bold" cfg.allowBold}