home: terminal: make 'default' extensible

This commit is contained in:
Bruno BELANYI 2026-02-28 21:50:31 +00:00
parent 14299fc6e8
commit ea818e8584
3 changed files with 13 additions and 1 deletions

View file

@ -4,6 +4,12 @@ let
inherit (config.my.home.terminal) colors;
in
{
options.my.home.terminal = with lib; {
default = mkOption {
type = with types; nullOr (enum [ "alacritty" ]);
};
};
config = lib.mkIf (cfg.default == "alacritty") {
programs.alacritty = {
enable = true;

View file

@ -17,7 +17,7 @@ in
options.my.home = with lib; {
terminal = {
default = mkOption {
type = with types; nullOr (enum [ "alacritty" "termite" ]);
type = with types; nullOr (enum [ ]);
default = null;
example = "termite";
description = "Which default terminal to use for home session";

View file

@ -4,6 +4,12 @@ let
inherit (config.my.home.terminal) colors;
in
{
options.my.home.terminal = with lib; {
default = mkOption {
type = with types; nullOr (enum [ "termite" ]);
};
};
config = lib.mkIf (cfg.default == "termite") {
programs.termite = {
enable = true;