mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
tests/modules/home-manager: init services.matcha
This commit is contained in:
parent
96eeb91e70
commit
d5b4cfe3ba
@ -56,6 +56,7 @@ import nmt {
|
|||||||
./programs/pop-launcher
|
./programs/pop-launcher
|
||||||
]
|
]
|
||||||
++ lib.optionals isLinux [
|
++ lib.optionals isLinux [
|
||||||
|
./services/matcha
|
||||||
./services/plover
|
./services/plover
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
28
tests/modules/home-manager/services/matcha/basic.nix
Normal file
28
tests/modules/home-manager/services/matcha/basic.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
3
tests/modules/home-manager/services/matcha/default.nix
Normal file
3
tests/modules/home-manager/services/matcha/default.nix
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
matcha-basic = ./basic.nix;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user