fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
863 B38 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.abook = {
8      enable = true;
9
10      extraConfig = ''
11        #  Defining a new custom field
12        # -----------------------------
13
14        field pager = Pager
15        field address_lines = Address, list
16        field birthday = Birthday, date
17
18        #  Defining a view/tab
19        # ---------------------
20
21        view CONTACT = name, email
22        view ADDRESS = address_lines, city, state, zip, country
23        view PHONE = phone, workphone, pager, mobile, fax
24        view OTHER = url, birthday
25
26        # Automatically save database on exit
27        set autosave=true
28      '';
29    };
30
31    test.stubs.abook = { };
32
33    nmt.script = ''
34      assertFileExists home-files/.config/abook/abookrc
35      assertFileContent home-files/.config/abook/abookrc ${./with-settings.cfg}
36    '';
37  };
38}