mirror of
https://github.com/nix-community/home-manager
synced 2025-01-12 03:59:49 +01:00
59a4c43e9b
bacon reads its preferences from a different directory on Darwin. Fix the path to read out of: ~/Library/Application\ Support/org.dystroy.bacon/prefs.toml Linux behavior should be unchanged.
15 lines
294 B
Nix
15 lines
294 B
Nix
{ pkgs, ... }:
|
|
let
|
|
configDir = if pkgs.stdenv.isDarwin then
|
|
"Library/Application Support/org.dystroy.bacon"
|
|
else
|
|
".config/bacon";
|
|
in {
|
|
programs.bacon.enable = true;
|
|
|
|
test.stubs.bacon = { };
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists 'home-files/${configDir}/prefs.toml'
|
|
'';
|
|
}
|