fork/home-manager

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

Anton Mosichqcal: add module8eb8c212

master
565 B26 linesraw
1{ pkgs, lib, ... }:
2
3{
4  programs.qcal = {
5    enable = true;
6    defaultNumDays = 23;
7    timezone = "Europe/Berlin";
8  };
9  accounts.calendar.accounts.test = {
10    qcal.enable = true;
11    remote = {
12      url = "https://cal.example.com/anton/work";
13      userName = "anton";
14      passwordCommand = [ "pass" "show" "calendar" ];
15    };
16  };
17
18  test.stubs = { qcal = { }; };
19
20  nmt.script = ''
21    assertFileExists home-files/.config/qcal/config.json
22    assertFileContent home-files/.config/qcal/config.json ${
23      ./webdav-calendar.json-expected
24    }
25  '';
26}