2020-02-21 12:02:33 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
home.stateVersion = "20.03";
|
|
|
|
|
|
|
|
programs.newsboat = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
url = "http://example.org/feed.xml";
|
|
|
|
tags = [ "tag1" "tag2" ];
|
|
|
|
title = "Cool feed";
|
|
|
|
}
|
|
|
|
|
|
|
|
{ url = "http://example.org/feed2.xml"; }
|
|
|
|
];
|
|
|
|
|
|
|
|
queries = { "foo" = ''rssurl =~ "example.com"''; };
|
|
|
|
};
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
test.stubs.newsboat = { };
|
2020-02-21 12:02:33 +01:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.newsboat/urls \
|
|
|
|
${./newsboat-basics-urls-2003.txt}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|