fork/home-manager

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

Morgane Austreelistwmn: add module63dccc4e

master
1.3 KiB51 linesraw
1{
2  config = {
3    services.twmn = {
4      enable = true;
5      duration = 4242;
6      host = "example.com";
7      port = 9006;
8      screen = 0;
9      soundCommand = "/path/sound/command";
10      icons.critical = "/path/icon/critical";
11      icons.info = "/path/icon/info";
12      icons.warning = "/path/icon/warning";
13      text = {
14        color = "#FF00FF";
15        font.family = "Noto Sans";
16        font.size = 16;
17        font.variant = "italic";
18        maxLength = 80;
19      };
20      window = {
21        alwaysOnTop = true;
22        color = "black";
23        height = 20;
24        offset.x = 20;
25        offset.y = -60;
26        opacity = 80;
27        position = "center";
28        animation = {
29          easeIn.curve = 27;
30          easeIn.duration = 314;
31          easeOut.curve = 13;
32          easeOut.duration = 168;
33          bounce.enable = true;
34          bounce.duration = 271;
35        };
36      };
37    };
38
39    test.stubs.twmn = { };
40
41    nmt.script = ''
42      serviceFile="home-files/.config/systemd/user/twmnd.service"
43      assertFileExists "$serviceFile"
44      assertFileRegex "$serviceFile" 'X-Restart-Triggers=.*twmn\.conf'
45      assertFileRegex "$serviceFile" 'ExecStart=@twmn@/bin/twmnd'
46      assertFileExists "home-files/.config/twmn/twmn.conf"
47      assertFileContent "home-files/.config/twmn/twmn.conf" \
48          ${./basic-configuration.conf}
49    '';
50  };
51}