1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +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 committed by Austin Horstman
parent d507f57df2
commit 624c97de9c

View file

@ -16,6 +16,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
"";
@ -52,6 +54,14 @@ in
'';
};
configFile = lib.mkOption {
type = with lib.types; nullOr (either str path);
default = null;
description = ''
Path to a custom configuration path, can be json, yaml or toml.
'';
};
enableBashIntegration = lib.hm.shell.mkBashIntegrationOption { inherit config; };
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption { inherit config; };