jjui: Fix default config directory path on Darwin
The default taken from jjui documentation: https://idursun.github.io/jjui/customization/config-toml/
This commit is contained in:
parent
e0ca734ffc
commit
0c8ef0f2b9
3 changed files with 4 additions and 9 deletions
|
|
@ -23,12 +23,8 @@ in
|
|||
|
||||
configDir = mkOption {
|
||||
type = lib.types.str;
|
||||
default =
|
||||
let
|
||||
dir = if pkgs.stdenv.isDarwin then "Library/Application Support" else config.xdg.configHome;
|
||||
in
|
||||
"${dir}/jjui";
|
||||
defaultText = lib.literalExpression "Darwin: \"Library/Application Support/jjui\" \nLinux: \${config.xdg.configHome}/jjui";
|
||||
default = "${config.xdg.configHome}/jjui";
|
||||
defaultText = lib.literalExpression "\${config.xdg.configHome}/jjui";
|
||||
example = lib.literalExpression "\${config.home.homeDirectory}/.jjui";
|
||||
description = ''
|
||||
The directory to contain jjui configuration files.
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
nmt.script =
|
||||
let
|
||||
configDir = if !pkgs.stdenv.isDarwin then ".config/jjui" else "Library/Application Support/jjui";
|
||||
configDir = ".config/jjui";
|
||||
in
|
||||
''
|
||||
assertFileContent \
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
|
@ -16,7 +15,7 @@
|
|||
|
||||
nmt.script =
|
||||
let
|
||||
configDir = if !pkgs.stdenv.isDarwin then ".config/jjui" else "Library/Application Support/jjui";
|
||||
configDir = ".config/jjui";
|
||||
in
|
||||
''
|
||||
assertFileContent \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue