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; +}