2019-12-09 06:25:40 +00:00
|
|
|
# NixOps configuration for the hosts running a Taskwarrior server (taskd)
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
services.taskserver = {
|
|
|
|
enable = true; # Enable Taskwarrior server
|
|
|
|
fqdn = "task.mcwhirter.io"; # Server's public domain name
|
|
|
|
listenHost = "task.mcwhirter.io"; # Sets listening IP & opens firewall
|
|
|
|
organisations = {
|
|
|
|
teaghlach = {
|
|
|
|
groups = [
|
|
|
|
"teaghlach"
|
|
|
|
];
|
|
|
|
users = [
|
|
|
|
"craige"
|
|
|
|
"fiona"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
sgioba = {
|
|
|
|
groups = [
|
|
|
|
"sgioba"
|
|
|
|
];
|
|
|
|
users = [
|
|
|
|
"craige"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
obair = {
|
|
|
|
groups = [
|
|
|
|
"obair"
|
|
|
|
];
|
|
|
|
users = [
|
|
|
|
"craige"
|
|
|
|
"disasm"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|