television: add module (#6866)
This commit is contained in:
parent
be4e5ec62c
commit
22b326b42b
6 changed files with 90 additions and 0 deletions
27
tests/modules/programs/television/basic-config.nix
Normal file
27
tests/modules/programs/television/basic-config.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.television = {
|
||||
enable = true;
|
||||
settings = {
|
||||
tick_rate = 50;
|
||||
ui = {
|
||||
use_nerd_font_icons = false;
|
||||
show_preview_panel = true;
|
||||
input_bar_position = "top";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/television/config.toml
|
||||
assertFileContent home-files/.config/television/config.toml \
|
||||
${pkgs.writeText "settings-expected" ''
|
||||
tick_rate = 50
|
||||
|
||||
[ui]
|
||||
input_bar_position = "top"
|
||||
show_preview_panel = true
|
||||
use_nerd_font_icons = false
|
||||
''}
|
||||
'';
|
||||
}
|
||||
3
tests/modules/programs/television/default.nix
Normal file
3
tests/modules/programs/television/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
television-basic-config = ./basic-config.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue