home: terminal: rename 'default'
It doesn't make the *most* sense as an option name to use `program`.
This commit is contained in:
parent
d4668416af
commit
8b028ce19f
8 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue