diff --git a/tests/modules/home-manager/default.nix b/tests/modules/home-manager/default.nix index 31ea7250..3fd67d0c 100644 --- a/tests/modules/home-manager/default.nix +++ b/tests/modules/home-manager/default.nix @@ -56,6 +56,7 @@ import nmt { ./programs/pop-launcher ] ++ lib.optionals isLinux [ + ./services/matcha ./services/plover ]); } diff --git a/tests/modules/home-manager/services/matcha/basic.nix b/tests/modules/home-manager/services/matcha/basic.nix new file mode 100644 index 00000000..9d2d15e2 --- /dev/null +++ b/tests/modules/home-manager/services/matcha/basic.nix @@ -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 + ''; +} diff --git a/tests/modules/home-manager/services/matcha/default.nix b/tests/modules/home-manager/services/matcha/default.nix new file mode 100644 index 00000000..2b380e28 --- /dev/null +++ b/tests/modules/home-manager/services/matcha/default.nix @@ -0,0 +1,3 @@ +{ + matcha-basic = ./basic.nix; +}