From 940c4c6679742652e6081778b30e4d6945af395b Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Tue, 30 Sep 2025 17:56:52 +0700 Subject: [PATCH] add prompt theming on nushell --- modules/home/rsydn/base.nix | 3 +++ modules/home/rsydn/shell/nushell.nix | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/home/rsydn/base.nix b/modules/home/rsydn/base.nix index 1ce3aaa..0335de9 100644 --- a/modules/home/rsydn/base.nix +++ b/modules/home/rsydn/base.nix @@ -10,6 +10,7 @@ ./devtools/ai-tools.nix ./devtools/languages.nix ./devtools/default.nix + ./secrets.nix ]; programs.nushell.enable = true; @@ -45,4 +46,6 @@ }; rsydn.languages.enable = lib.mkDefault true; + + rsydn.secrets.enable = lib.mkDefault true; } diff --git a/modules/home/rsydn/shell/nushell.nix b/modules/home/rsydn/shell/nushell.nix index e25039c..52c4c5d 100644 --- a/modules/home/rsydn/shell/nushell.nix +++ b/modules/home/rsydn/shell/nushell.nix @@ -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; +}