1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

fix config file location on macOS and fix test

This commit is contained in:
liyangau 2025-10-14 18:21:05 +11:00 committed by Austin Horstman
parent 990e5ce679
commit ed1eb4cfdd
2 changed files with 4 additions and 4 deletions

View file

@ -80,7 +80,7 @@ in
let let
configPath = configPath =
if pkgs.stdenv.hostPlatform.isDarwin then if pkgs.stdenv.hostPlatform.isDarwin then
"Library/Preferences/org.IntelliShell.Intelli-Shell" "Library/Application Support/org.IntelliShell.Intelli-Shell"
else else
".config/intelli-shell"; ".config/intelli-shell";
in in

View file

@ -27,13 +27,13 @@
let let
configPath = configPath =
if pkgs.stdenv.hostPlatform.isDarwin then if pkgs.stdenv.hostPlatform.isDarwin then
"Library/Preferences/org.IntelliShell.Intelli-Shell" "Library/Application Support/org.IntelliShell.Intelli-Shell"
else else
".config/intelli-shell"; ".config/intelli-shell";
in in
'' ''
assertFileExists home-files/${configPath}/config.toml assertFileExists 'home-files/${configPath}/config.toml'
assertFileContent home-files/${configPath}/config.toml \ assertFileContent 'home-files/${configPath}/config.toml' \
${./config.toml} ${./config.toml}
''; '';
} }