home: terminal: rename 'default'

It doesn't make the *most* sense as an option name to use `program`.
This commit is contained in:
Bruno BELANYI 2025-08-22 15:00:54 +01:00
parent d4668416af
commit 8b028ce19f
8 changed files with 13 additions and 13 deletions

View file

@ -4,7 +4,7 @@ let
inherit (config.my.home.terminal) colors;
in
{
config = lib.mkIf (cfg.program == "alacritty") {
config = lib.mkIf (cfg.default == "alacritty") {
programs.alacritty = {
enable = true;

View file

@ -16,11 +16,11 @@ in
options.my.home = with lib; {
terminal = {
program = mkOption {
default = mkOption {
type = with types; nullOr (enum [ "alacritty" "termite" ]);
default = null;
example = "termite";
description = "Which terminal to use for home session";
description = "Which default terminal to use for home session";
};
colors = {
@ -56,7 +56,7 @@ in
};
};
config.home.sessionVariables = lib.mkIf (cfg.program != null) {
TERMINAL = cfg.program;
config.home.sessionVariables = lib.mkIf (cfg.default != null) {
TERMINAL = cfg.default;
};
}

View file

@ -4,7 +4,7 @@ let
inherit (config.my.home.terminal) colors;
in
{
config = lib.mkIf (cfg.program == "termite") {
config = lib.mkIf (cfg.default == "termite") {
programs.termite = {
enable = true;