add prompt theming on nushell

This commit is contained in:
Rasyidan Akbar F. 2025-09-30 17:56:52 +07:00
commit 940c4c6679
2 changed files with 19 additions and 1 deletions

View file

@ -1 +1,16 @@
{ lib, ... }: { programs.nushell.enable = lib.mkDefault true; }
{ config, lib, ... }:
let
themeName = "capr4n.omp.json";
themeSource = ./oh-my-posh/capr4n.omp.json;
themeConfigPath = "${config.xdg.configHome}/oh-my-posh/${themeName}";
in {
programs.nushell.enable = lib.mkDefault true;
programs.oh-my-posh = {
enable = lib.mkDefault true;
enableNushellIntegration = lib.mkDefault true;
configFile = themeConfigPath;
};
xdg.configFile."oh-my-posh/${themeName}".source = themeSource;
}