1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 12:19:48 +01:00
home-manager/tests/modules/services/lieer/lieer-service.nix

31 lines
801 B
Nix
Raw Normal View History

2023-05-13 00:08:12 +02:00
{ ... }:
{
imports = [ ../../accounts/email-test-accounts.nix ];
2023-05-13 00:08:12 +02:00
services.lieer.enable = true;
2023-05-13 00:08:12 +02:00
accounts.email.accounts = {
"hm@example.com" = {
flavor = "gmail.com";
lieer = {
enable = true;
sync.enable = true;
};
2023-05-13 00:08:12 +02:00
notmuch.enable = true;
};
2023-05-13 00:08:12 +02:00
};
2023-05-13 00:08:12 +02:00
test.stubs.lieer = { };
2023-05-13 00:08:12 +02:00
nmt.script = ''
assertFileExists home-files/.config/systemd/user/lieer-hm-example-com.service
assertFileExists home-files/.config/systemd/user/lieer-hm-example-com.timer
2023-05-13 00:08:12 +02:00
assertFileContent home-files/.config/systemd/user/lieer-hm-example-com.service \
${./lieer-service-expected.service}
assertFileContent home-files/.config/systemd/user/lieer-hm-example-com.timer \
${./lieer-service-expected.timer}
'';
}