1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00
home-manager/tests/modules/programs/comodoro/comodoro.nix

36 lines
706 B
Nix
Raw Normal View History

2023-04-14 23:41:51 +02:00
{ ... }:
{
programs.comodoro = {
enable = true;
settings = {
test-preset = {
cycles = [
{
name = "Work";
duration = 1500;
}
{
name = "Rest";
duration = 500;
}
];
tcp-host = "localhost";
tcp-port = 8080;
on-server-start = "echo server started";
on-timer-stop = "echo timer stopped";
on-work-begin = "echo work cycle began";
};
};
};
test.stubs.comodoro = { };
nmt.script = ''
assertFileExists home-files/.config/comodoro/config.toml
assertFileContent home-files/.config/comodoro/config.toml ${./expected.toml}
'';
}