gnome-terminal: add profile command options
Allow setting custom command and login shell. PR #1423
This commit is contained in:
parent
96e2f1bdf0
commit
2a54c353a9
|
@ -122,6 +122,20 @@ let
|
||||||
The number of scrollback lines to keep, null for infinite.
|
The number of scrollback lines to keep, null for infinite.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
customCommand = mkOption {
|
||||||
|
default = null;
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
description = ''
|
||||||
|
The command to use to start the shell, or null for default shell.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
loginShell = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
description = "Run command as a login shell.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -132,7 +146,13 @@ let
|
||||||
scrollback-lines = pcfg.scrollbackLines;
|
scrollback-lines = pcfg.scrollbackLines;
|
||||||
cursor-shape = pcfg.cursorShape;
|
cursor-shape = pcfg.cursorShape;
|
||||||
cursor-blink-mode = pcfg.cursorBlinkMode;
|
cursor-blink-mode = pcfg.cursorBlinkMode;
|
||||||
} // (if (pcfg.font == null) then {
|
login-shell = pcfg.loginShell;
|
||||||
|
} // (if (pcfg.customCommand != null) then {
|
||||||
|
use-custom-command = true;
|
||||||
|
custom-command = pcfg.customCommand;
|
||||||
|
} else {
|
||||||
|
use-custom-command = false;
|
||||||
|
}) // (if (pcfg.font == null) then {
|
||||||
use-system-font = true;
|
use-system-font = true;
|
||||||
} else {
|
} else {
|
||||||
use-system-font = false;
|
use-system-font = false;
|
||||||
|
|
Loading…
Reference in a new issue