Add go devshell

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-01-06 13:44:43 +02:00
parent 249c089718
commit 31f3364f06
14 changed files with 111 additions and 34 deletions

View 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})
'';
};
}