nushell: fix nushell config path on darwin
This commit is contained in:
parent
4cc3c91601
commit
630a0992b3
|
@ -6,7 +6,7 @@ let
|
||||||
|
|
||||||
cfg = config.programs.nushell;
|
cfg = config.programs.nushell;
|
||||||
|
|
||||||
configDir = if pkgs.stdenv.isDarwin then
|
configDir = if pkgs.stdenv.isDarwin && !config.xdg.enable then
|
||||||
"Library/Application Support/nushell"
|
"Library/Application Support/nushell"
|
||||||
else
|
else
|
||||||
"${config.xdg.configHome}/nushell";
|
"${config.xdg.configHome}/nushell";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nmt.script = let
|
nmt.script = let
|
||||||
configDir = if pkgs.stdenv.isDarwin then
|
configDir = if pkgs.stdenv.isDarwin && !config.xdg.enable then
|
||||||
"home-files/Library/Application Support/nushell"
|
"home-files/Library/Application Support/nushell"
|
||||||
else
|
else
|
||||||
"home-files/.config/nushell";
|
"home-files/.config/nushell";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.nushell.enable = true;
|
programs.nushell.enable = true;
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
test.stubs.nushell = { };
|
test.stubs.nushell = { };
|
||||||
|
|
||||||
nmt.script = let
|
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"
|
"home-files/Library/Application Support/nushell/config.nu"
|
||||||
else
|
else
|
||||||
"home-files/.config/nushell/config.nu";
|
"home-files/.config/nushell/config.nu";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.nushell = {
|
programs.nushell = {
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
test.stubs.nushell = { };
|
test.stubs.nushell = { };
|
||||||
|
|
||||||
nmt.script = let
|
nmt.script = let
|
||||||
configDir = if pkgs.stdenv.isDarwin then
|
configDir = if pkgs.stdenv.isDarwin && !config.xdg.enable then
|
||||||
"home-files/Library/Application Support/nushell"
|
"home-files/Library/Application Support/nushell"
|
||||||
else
|
else
|
||||||
"home-files/.config/nushell";
|
"home-files/.config/nushell";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -16,12 +16,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nmt.script = let
|
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"
|
"home-files/Library/Application Support/nushell/config.nu"
|
||||||
else
|
else
|
||||||
"home-files/.config/nushell/config.nu";
|
"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"
|
"home-files/Library/Application Support/nushell/env.nu"
|
||||||
else
|
else
|
||||||
"home-files/.config/nushell/env.nu";
|
"home-files/.config/nushell/env.nu";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
shellIntegration = ''
|
shellIntegration = ''
|
||||||
|
@ -23,7 +23,7 @@ in {
|
||||||
test.stubs.yazi = { };
|
test.stubs.yazi = { };
|
||||||
|
|
||||||
nmt.script = let
|
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"
|
"home-files/Library/Application Support/nushell/config.nu"
|
||||||
else
|
else
|
||||||
"home-files/.config/nushell/config.nu";
|
"home-files/.config/nushell/config.nu";
|
||||||
|
|
Loading…
Reference in a new issue