mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-08 10:01:05 +01:00
vte: add module
This abstracts out the VTE setup from the gnome-terminal module into its own module and options.
This commit is contained in:
parent
507e446475
commit
bb567e20b3
4 changed files with 56 additions and 7 deletions
|
|
@ -6,11 +6,6 @@ let
|
|||
|
||||
cfg = config.programs.gnome-terminal;
|
||||
|
||||
vteInitStr = ''
|
||||
# gnome-terminal: Show current directory in the terminal window title.
|
||||
. ${pkgs.vte}/etc/profile.d/vte.sh
|
||||
'';
|
||||
|
||||
backForeSubModule = types.submodule ({ ... }: {
|
||||
options = {
|
||||
foreground = mkOption {
|
||||
|
|
@ -217,7 +212,7 @@ in {
|
|||
(n: v: nameValuePair ("${dconfPath}/profiles:/:${n}") (buildProfileSet v))
|
||||
cfg.profile;
|
||||
|
||||
programs.bash.initExtra = mkBefore vteInitStr;
|
||||
programs.zsh.initExtra = vteInitStr;
|
||||
programs.bash.enableVteIntegration = true;
|
||||
programs.zsh.enableVteIntegration = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue