diff --git a/home-manager-module.nix b/home-manager-module.nix index 1d4aa0a..87c50fb 100644 --- a/home-manager-module.nix +++ b/home-manager-module.nix @@ -30,7 +30,21 @@ let cfg = config.ptitfred.posix-toolbox; in { options = { - ptitfred.posix-toolbox.enable = lib.mkEnableOption "posix-toolbox"; + ptitfred.posix-toolbox = { + enable = lib.mkEnableOption "posix-toolbox"; + + git-bubbles.pattern = lib.mkOption { + name = "git-bubbles pattern"; + type = lib.types.str; + default = null; + }; + + git-bubbles.remote-name = lib.mkOption { + name = "git-bubbles remote-name"; + type = lib.types.str; + default = null; + }; + }; }; config = { @@ -38,5 +52,10 @@ in programs.bash.initExtra = lib.mkIf (cfg.enable && config.programs.bash.enable) initExtra; + + programs.git.extraConfig = { + bubbles.remote-name = lib.mkIf cfg.enable cfg.git-bubbles.remote-name; + bubbles.pattern = lib.mkIf cfg.enable cfg.git-bubbles.pattern; + }; }; }