radio-cli: add module (#7488)
This commit is contained in:
parent
50adf43449
commit
2d55a52963
4 changed files with 85 additions and 0 deletions
11
tests/modules/programs/radio-cli/config.json
Normal file
11
tests/modules/programs/radio-cli/config.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"config_version": "2.3.0",
|
||||
"country": "ES",
|
||||
"data": [
|
||||
{
|
||||
"station": "lofi",
|
||||
"url": "https://www.youtube.com/live/jfKfPfyJRdk?si=WDl-XdfuhxBfe6XN"
|
||||
}
|
||||
],
|
||||
"max_lines": 7
|
||||
}
|
||||
1
tests/modules/programs/radio-cli/default.nix
Normal file
1
tests/modules/programs/radio-cli/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ radio-cli-example = ./example-config.nix; }
|
||||
22
tests/modules/programs/radio-cli/example-config.nix
Normal file
22
tests/modules/programs/radio-cli/example-config.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
programs.radio-cli = {
|
||||
enable = true;
|
||||
settings = {
|
||||
config_version = "2.3.0";
|
||||
max_lines = 7;
|
||||
country = "ES";
|
||||
data = [
|
||||
{
|
||||
station = "lofi";
|
||||
url = "https://www.youtube.com/live/jfKfPfyJRdk?si=WDl-XdfuhxBfe6XN";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/radio-cli/config.json
|
||||
assertFileContent home-files/.config/radio-cli/config.json \
|
||||
${./config.json}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue