mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Use the same starship package everywhere
This commit is contained in:
parent
b0991454b7
commit
8a118cc51a
1 changed files with 6 additions and 4 deletions
|
@ -26,7 +26,9 @@ in {
|
||||||
|
|
||||||
environment.variables.STARSHIP_LOG = "error";
|
environment.variables.STARSHIP_LOG = "error";
|
||||||
|
|
||||||
home-manager.sharedModules = [(homeArgs: {
|
home-manager.sharedModules = [(homeArgs: let
|
||||||
|
homeConfig = homeArgs.config;
|
||||||
|
in {
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"nushell/zoxide.nu".source = pkgs.runCommand "zoxide.nu" {} ''
|
"nushell/zoxide.nu".source = pkgs.runCommand "zoxide.nu" {} ''
|
||||||
${getExe pkgs.zoxide} init nushell --cmd cd > $out
|
${getExe pkgs.zoxide} init nushell --cmd cd > $out
|
||||||
|
@ -37,7 +39,7 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
"nushell/starship.nu".source = pkgs.runCommand "starship.nu" {} ''
|
"nushell/starship.nu".source = pkgs.runCommand "starship.nu" {} ''
|
||||||
${getExe pkgs.starship} init nu > $out
|
${getExe homeConfig.programs.starship.package} init nu > $out
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -167,12 +169,12 @@ in {
|
||||||
environmentVariables = let
|
environmentVariables = let
|
||||||
environmentVariables = config.environment.variables;
|
environmentVariables = config.environment.variables;
|
||||||
|
|
||||||
homeVariables = homeArgs.config.home.sessionVariables;
|
homeVariables = homeConfig.home.sessionVariables;
|
||||||
homeVariablesExtra = pkgs.runCommand "home-variables-extra.env" {} ''
|
homeVariablesExtra = pkgs.runCommand "home-variables-extra.env" {} ''
|
||||||
alias export=echo
|
alias export=echo
|
||||||
# echo foo > $out
|
# echo foo > $out
|
||||||
# FIXME
|
# FIXME
|
||||||
eval $(cat ${homeArgs.config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh) > $out
|
eval $(cat ${homeConfig.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh) > $out
|
||||||
''
|
''
|
||||||
# |> (aaa: (_: break _) aaa)
|
# |> (aaa: (_: break _) aaa)
|
||||||
|> readFile
|
|> readFile
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue