2019-12-09 06:25:40 +00:00
|
|
|
# NixOps configuration for the hosts running a Taskwarrior server (taskd)
|
|
|
|
{
|
2022-03-07 14:26:15 +00:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2019-12-09 06:25:40 +00:00
|
|
|
services.taskserver = {
|
2021-11-16 04:57:23 +00:00
|
|
|
enable = true; # Enable Taskwarrior server
|
|
|
|
fqdn = "task.mcwhirter.io"; # Server's public domain name
|
|
|
|
listenHost = "task.mcwhirter.io"; # Sets listening IP & opens firewall
|
2019-12-09 06:25:40 +00:00
|
|
|
organisations = {
|
|
|
|
teaghlach = {
|
2022-03-07 14:26:15 +00:00
|
|
|
groups = ["teaghlach"];
|
|
|
|
users = ["craige" "fiona"];
|
2019-12-09 06:25:40 +00:00
|
|
|
};
|
|
|
|
sgioba = {
|
2022-03-07 14:26:15 +00:00
|
|
|
groups = ["sgioba"];
|
|
|
|
users = ["craige"];
|
2019-12-09 06:25:40 +00:00
|
|
|
};
|
|
|
|
obair = {
|
2022-03-07 14:26:15 +00:00
|
|
|
groups = ["obair"];
|
|
|
|
users = ["craige" "disasm"];
|
2019-12-09 06:25:40 +00:00
|
|
|
};
|
|
|
|
};
|
2021-09-28 01:30:27 +00:00
|
|
|
pki.auto.expiration = {
|
|
|
|
ca = 365;
|
|
|
|
client = 365;
|
|
|
|
server = 365;
|
|
|
|
};
|
2019-12-09 06:25:40 +00:00
|
|
|
};
|
|
|
|
}
|