mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-09 03:56:04 +01:00
oh-my-posh: added option to supply config path
This commit is contained in:
parent
d507f57df2
commit
624c97de9c
1 changed files with 10 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ let
|
||||||
"--config ${config.xdg.configHome}/oh-my-posh/config.json"
|
"--config ${config.xdg.configHome}/oh-my-posh/config.json"
|
||||||
else if cfg.useTheme != null then
|
else if cfg.useTheme != null then
|
||||||
"--config ${cfg.package}/share/oh-my-posh/themes/${cfg.useTheme}.omp.json"
|
"--config ${cfg.package}/share/oh-my-posh/themes/${cfg.useTheme}.omp.json"
|
||||||
|
else if cfg.configFile != null then
|
||||||
|
"--config ${cfg.configFile}"
|
||||||
else
|
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; };
|
enableBashIntegration = lib.hm.shell.mkBashIntegrationOption { inherit config; };
|
||||||
|
|
||||||
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption { inherit config; };
|
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption { inherit config; };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue