1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

oh-my-posh: added option to supply config path

This commit is contained in:
Yechiel Worenklein 2024-11-19 23:57:57 +02:00
parent a46e702093
commit 05033feb46

View file

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