bottom: use xdg.configHome on Darwin
Both locations are supported, see https://clementtsang.github.io/bottom/nightly/configuration/config-file/default-config/
This commit is contained in:
parent
cd690d2021
commit
e17e5e4f48
3 changed files with 6 additions and 22 deletions
|
|
@ -9,13 +9,8 @@ with lib;
|
|||
package = config.lib.test.mkStubPackage { };
|
||||
};
|
||||
|
||||
nmt.script = let
|
||||
configDir = if pkgs.stdenv.isDarwin then
|
||||
"home-files/Library/Application Support"
|
||||
else
|
||||
"home-files/.config";
|
||||
in ''
|
||||
assertPathNotExists ${configDir}/bottom
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/bottom
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,14 +18,9 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
nmt.script = let
|
||||
configDir = if pkgs.stdenv.isDarwin then
|
||||
"home-files/Library/Application Support"
|
||||
else
|
||||
"home-files/.config";
|
||||
in ''
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
"${configDir}/bottom/bottom.toml" \
|
||||
"home-files/.config/bottom/bottom.toml" \
|
||||
${./example-settings-expected.toml}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue