Before 19.03, programs.beets.enable implicitly followed whether programs.beets.settings was non-empty. That compatibility branch was still active for older state versions, but it was silent. Route the default through the shared state-version helper so legacy users get a consistent deprecation warning before the implicit enablement is cleaned up. Add focused tests for the legacy and current default branches alongside the existing beets coverage. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
12 lines
262 B
Nix
12 lines
262 B
Nix
{
|
|
home.stateVersion = "18.09";
|
|
|
|
programs.beets.settings = {
|
|
directory = "~/Music";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/beets/config.yaml
|
|
assertFileContains home-files/.config/beets/config.yaml 'directory: ~/Music'
|
|
'';
|
|
}
|