television: add module (#6866)

This commit is contained in:
awwpotato 2025-04-21 10:26:20 -07:00 committed by GitHub
parent be4e5ec62c
commit 22b326b42b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 90 additions and 0 deletions

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

View file

@ -0,0 +1,3 @@
{
television-basic-config = ./basic-config.nix;
}