2.home-manager/tests/modules/programs/beets/legacy-enable-default.nix
Austin Horstman 111b158a98 beets: warn on implicit enable default
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>
2026-03-22 11:46:51 -05:00

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'
'';
}