1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

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; 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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";