1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-17 00:29:45 +01:00
home-manager/tests/modules/programs/comodoro/comodoro.nix
2023-06-14 23:43:19 +02:00

35 lines
706 B
Nix

{ ... }:
{
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}
'';
}