mio-ops/profiles/taskserver.nix

33 lines
727 B
Nix
Raw Normal View History

2019-12-09 06:25:40 +00:00
# NixOps configuration for the hosts running a Taskwarrior server (taskd)
{ config, pkgs, lib, ... }:
{
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 = {
2021-11-16 04:57:23 +00:00
groups = [ "teaghlach" ];
users = [ "craige" "fiona" ];
2019-12-09 06:25:40 +00:00
};
sgioba = {
2021-11-16 04:57:23 +00:00
groups = [ "sgioba" ];
users = [ "craige" ];
2019-12-09 06:25:40 +00:00
};
obair = {
2021-11-16 04:57:23 +00:00
groups = [ "obair" ];
users = [ "craige" "disasm" ];
2019-12-09 06:25:40 +00:00
};
};
pki.auto.expiration = {
ca = 365;
client = 365;
server = 365;
};
2019-12-09 06:25:40 +00:00
};
}