diff --git a/modules/programs/oh-my-posh.nix b/modules/programs/oh-my-posh.nix index 8c46a1c69..c68907424 100644 --- a/modules/programs/oh-my-posh.nix +++ b/modules/programs/oh-my-posh.nix @@ -11,6 +11,8 @@ let "--config ${config.xdg.configHome}/oh-my-posh/config.json" else if cfg.useTheme != null then "--config ${cfg.package}/share/oh-my-posh/themes/${cfg.useTheme}.omp.json" + else if cfg.configFile != null then + "--config ${cfg.configFile}" else ""; @@ -47,6 +49,14 @@ in { ''; }; + configFile = mkOption { + type = types.nullOr types.str; + default = null; + description = '' + Path to a custome config path, can be json, yaml or toml + ''; + }; + enableBashIntegration = mkOption { type = types.bool; default = true;