fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Clément DOUINcomodoro: add modulee0034971

master
706 B35 linesraw
1{ ... }:
2
3{
4  programs.comodoro = {
5    enable = true;
6    settings = {
7      test-preset = {
8        cycles = [
9          {
10            name = "Work";
11            duration = 1500;
12          }
13          {
14            name = "Rest";
15            duration = 500;
16          }
17        ];
18
19        tcp-host = "localhost";
20        tcp-port = 8080;
21
22        on-server-start = "echo server started";
23        on-timer-stop = "echo timer stopped";
24        on-work-begin = "echo work cycle began";
25      };
26    };
27  };
28
29  test.stubs.comodoro = { };
30
31  nmt.script = ''
32    assertFileExists home-files/.config/comodoro/config.toml
33    assertFileContent home-files/.config/comodoro/config.toml ${./expected.toml}
34  '';
35}