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:
parent
4cc3c91601
commit
630a0992b3
6 changed files with 12 additions and 12 deletions
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue