treewide: nushell build time configs suffixed

Add filetype suffix for LSP/tree-sitter support.
This commit is contained in:
Austin Horstman 2025-04-02 10:01:35 -05:00
parent 180fd43eea
commit 53cacafd9b
12 changed files with 12 additions and 12 deletions

View file

@ -124,7 +124,7 @@ in {
programs.nushell = mkIf cfg.enableNushellIntegration {
extraConfig = ''
source ${
pkgs.runCommand "atuin-nushell-config" { } ''
pkgs.runCommand "atuin-nushell-config.nu" { } ''
${lib.getExe cfg.package} init nu ${flagsStr} >> "$out"
''
}

View file

@ -44,7 +44,7 @@ in {
nushell = lib.mkIf cfg.enableNushellIntegration {
extraConfig = ''
source ${
pkgs.runCommand "carapace-nushell-config" { } ''
pkgs.runCommand "carapace-nushell-config.nu" { } ''
${bin} _carapace nushell >> "$out"
''
}

View file

@ -31,7 +31,7 @@ in {
nushell = lib.mkIf cfg.enableNushellIntegration {
extraConfig = ''
source ${
pkgs.runCommand "nix-your-shell-nushell-config" { } ''
pkgs.runCommand "nix-your-shell-nushell-config.nu" { } ''
${lib.getExe cfg.package} nu >> "$out"
''
}

View file

@ -82,7 +82,7 @@ in {
programs.nushell = mkIf cfg.enableNushellIntegration {
extraConfig = ''
source ${
pkgs.runCommand "oh-my-posh-nushell-config" { } ''
pkgs.runCommand "oh-my-posh-nushell-config.nu" { } ''
${
lib.getExe cfg.package
} init nu ${configArgument} --print >> "$out"

View file

@ -51,7 +51,7 @@ in {
nushell.extraConfig = lib.mkIf cfg.enableNushellIntegration ''
source ${
pkgs.runCommand "pay-respects-nushell-config" { } ''
pkgs.runCommand "pay-respects-nushell-config.nu" { } ''
${payRespectsCmd} nushell ${cfgOptions} >> "$out"
''
}

View file

@ -128,7 +128,7 @@ in {
# not done here.
extraConfig = ''
use ${
pkgs.runCommand "starship-nushell-config" { } ''
pkgs.runCommand "starship-nushell-config.nu" { } ''
${lib.getExe cfg.package} init nu >> "$out"
''
}

View file

@ -53,7 +53,7 @@ in {
programs.nushell = lib.mkIf cfg.enableNushellIntegration {
extraConfig = ''
source ${
pkgs.runCommand "zoxide-nushell-config" { } ''
pkgs.runCommand "zoxide-nushell-config.nu" { } ''
${lib.getExe cfg.package} init nushell ${cfgOptions} >> "$out"
''
}

View file

@ -16,6 +16,6 @@
in ''
assertFileExists "${configDir}/config.nu"
assertFileRegex "${configDir}/config.nu" \
'source /nix/store/[^/]*-carapace-nushell-config'
'source /nix/store/[^/]*-carapace-nushell-config.nu'
'';
}

View file

@ -29,7 +29,7 @@
assertFileExists ${nushellConfigDir}/config.nu
assertFileRegex \
${nushellConfigDir}/config.nu \
'source /nix/store/[^/]*-nix-your-shell-nushell-config'
'source /nix/store/[^/]*-nix-your-shell-nushell-config.nu'
assertFileExists home-files/.zshrc
assertFileRegex \

View file

@ -21,6 +21,6 @@
assertFileExists "${configFile}"
assertFileRegex \
"${configFile}" \
'source /nix/store/[^/]*-oh-my-posh-nushell-config'
'source /nix/store/[^/]*-oh-my-posh-nushell-config.nu'
'';
}

View file

@ -19,6 +19,6 @@
assertFileNotRegex home-files/.bashrc '/nix/store/[^/]*-pay-respects-[^/]*/bin/pay-respects'
assertFileNotRegex home-files/.zshrc '/nix/store/[^/]*-pay-respects-[^/]*/bin/pay-respects'
assertFileNotRegex home-files/.config/fish/config.fish '/nix/store/[^/]*-pay-respects-[^/]*/bin/pay-respects'
assertFileNotRegex home-files/.config/nushell/config.nu 'source /nix/store/[^/]*-pay-respects-nushell-config'
assertFileNotRegex home-files/.config/nushell/config.nu 'source /nix/store/[^/]*-pay-respects-nushell-config.nu'
'';
}

View file

@ -30,6 +30,6 @@
assertFileExists home-files/.config/nushell/config.nu
assertFileRegex \
home-files/.config/nushell/config.nu \
'source /nix/store/[^/]*-pay-respects-nushell-config'
'source /nix/store/[^/]*-pay-respects-nushell-config.nu'
'';
}