nushell: fix nushell config path on darwin

This commit is contained in:
Philipp Mildenberger 2024-04-14 08:58:16 +02:00 committed by GitHub
parent 4cc3c91601
commit 630a0992b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 12 deletions

View file

@ -6,7 +6,7 @@ let
cfg = config.programs.nushell;
configDir = if pkgs.stdenv.isDarwin then
configDir = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"Library/Application Support/nushell"
else
"${config.xdg.configHome}/nushell";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
programs = {
@ -7,7 +7,7 @@
};
nmt.script = let
configDir = if pkgs.stdenv.isDarwin then
configDir = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell"
else
"home-files/.config/nushell";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
programs.nushell.enable = true;
@ -7,7 +7,7 @@
test.stubs.nushell = { };
nmt.script = let
configFile = if pkgs.stdenv.isDarwin then
configFile = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell/config.nu"
else
"home-files/.config/nushell/config.nu";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
programs.nushell = {
@ -34,7 +34,7 @@
test.stubs.nushell = { };
nmt.script = let
configDir = if pkgs.stdenv.isDarwin then
configDir = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell"
else
"home-files/.config/nushell";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
programs = {
@ -16,12 +16,12 @@
};
nmt.script = let
configFile = if pkgs.stdenv.isDarwin then
configFile = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell/config.nu"
else
"home-files/.config/nushell/config.nu";
envFile = if pkgs.stdenv.isDarwin then
envFile = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell/env.nu"
else
"home-files/.config/nushell/env.nu";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
let
shellIntegration = ''
@ -23,7 +23,7 @@ in {
test.stubs.yazi = { };
nmt.script = let
configPath = if pkgs.stdenv.isDarwin then
configPath = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell/config.nu"
else
"home-files/.config/nushell/config.nu";