tests/modules/home-manager: init services.matcha

This commit is contained in:
Gabriel Arazas 2024-03-08 10:12:40 +08:00
parent 96eeb91e70
commit d5b4cfe3ba
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 32 additions and 0 deletions

View File

@ -56,6 +56,7 @@ import nmt {
./programs/pop-launcher ./programs/pop-launcher
] ]
++ lib.optionals isLinux [ ++ lib.optionals isLinux [
./services/matcha
./services/plover ./services/plover
]); ]);
} }

View File

@ -0,0 +1,28 @@
{ config, lib, pkgs, ... }:
{
services.matcha = {
enable = true;
package = pkgs.matcha-rss-digest;
settings = {
markdown_dir_path = "${config.xdg.userDirs.documents}/Matcha";
feeds = [
"http://hnrss.org/best"
"https://waitbutwhy.com/feed"
"http://tonsky.me/blog/atom.xml"
"http://www.joelonsoftware.com/rss.xml"
"https://www.youtube.com/feeds/videos.xml?channel_id=UCHnyfMqiRRG1u-2MsSQLbXA"
];
markdown_file_prefix = "doggo";
};
};
test.stubs.matcha-rss-digest = { };
nmt.script = ''
assertFileExists home-files/.config/systemd/user/matcha.timer
assertFileExists home-files/.config/systemd/user/matcha.service
'';
}

View File

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