Add go devshell
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
25
hosts/common/configs/user/console/zsh/options.nix
Normal file
25
hosts/common/configs/user/console/zsh/options.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.programs.zsh;
|
||||
in
|
||||
{
|
||||
options.programs.zsh =
|
||||
with lib;
|
||||
with types;
|
||||
{
|
||||
p10k.extraRightPromptElements = mkOption {
|
||||
type = listOf str;
|
||||
default = [ ];
|
||||
description = "Extra elements to display on the right side of the prompt.";
|
||||
};
|
||||
};
|
||||
|
||||
config.programs.zsh =
|
||||
with lib;
|
||||
with cfg;
|
||||
{
|
||||
initExtra = ''
|
||||
export P10K_EXTRA_RIGHT_PROMPT_ELEMENTS=(${strings.concatStringsSep " " cfg.p10k.extraRightPromptElements})
|
||||
'';
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user