1
0
Fork 0
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:
Robert Helgesson 2020-06-14 12:20:12 +02:00
parent 507e446475
commit bb567e20b3
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
4 changed files with 56 additions and 7 deletions

View file

@ -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;
};
}