mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 06:16:33 +02:00
36 lines
706 B
Nix
36 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}
|
|
'';
|
|
}
|