fork/home-manager

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

Gabriel Arazasrecoll: add module0e2f7876

master
1.4 KiB45 linesraw
1# This is a test primarily concerned with the order of the configuration. The
2# configuration is dynamically generated in alphabetical order of the top-level
3# attribute names. Because of this, it is possible to override top-level
4# attributes that are supposed to be configured in the top-level configuration.
5{ config, ... }:
6
7{
8  services.recoll = {
9    enable = true;
10    package = config.lib.test.mkStubPackage { };
11    settings = {
12      a = { foo = "bar"; };
13      b = 10;
14      c = {
15        a = "This should appear as the second section.";
16        b = 53;
17        aa = true;
18      };
19      d = false;
20      e =
21        "This should be the second to the last non-attrset value in the config.";
22      f = {
23        a =
24          "This should be second to the last for the attribute names with an attrset.";
25        b = 3193;
26        c = false;
27        d = [ "Hello" "there" ];
28      };
29      foo = {
30        bar = "This should be the last attribute with an attrset.";
31        baz = 42;
32      };
33      g = [ "This" "is" "coming" "from" "a" "list" ];
34    };
35  };
36
37  nmt.script = ''
38    assertFileExists home-files/.config/systemd/user/recollindex.service
39    assertFileExists home-files/.config/systemd/user/recollindex.timer
40
41    assertFileExists home-files/.recoll/recoll.conf
42    assertFileContent home-files/.recoll/recoll.conf \
43        ${./config-format-order.conf}
44  '';
45}