1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/programs/alistral/settings.nix
2025-10-03 13:36:26 -05:00

26 lines
607 B
Nix

{ pkgs, ... }:
{
programs.alistral = {
enable = true;
settings = {
default_user = "spanish_inquisition";
listenbrainz_url = "https://api.listenbrainz.org/1/";
musicbrainz_url = "http://musicbrainz.org/ws/2";
};
};
nmt.script =
let
configDir =
if pkgs.stdenv.hostPlatform.isDarwin then
"Library/Application Support/alistral"
else
".config/alistral";
in
''
assertFileExists "home-files/${configDir}/config.json"
assertFileContent "home-files/${configDir}/config.json" \
${./config.json}
'';
}