mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-16 21:38:18 +00:00
oh-my-posh: added option to supply config path
This commit is contained in:
parent
a46e702093
commit
4d8e4cdb07
1 changed files with 10 additions and 0 deletions
|
@ -11,6 +11,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
|
||||||
"";
|
"";
|
||||||
|
|
||||||
|
@ -47,6 +49,14 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configFile = mkOption {
|
||||||
|
type = types.nullOr types.path;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Path to a custom configuration path, can be json, yaml or toml.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
enableBashIntegration = mkOption {
|
enableBashIntegration = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue