From 308f4f95e57296d663e91af9d06d9fd57b6b20a8 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 9 Dec 2019 16:25:40 +1000 Subject: [PATCH] Initial commit of TaskWarrio --- roles/taskserver.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 roles/taskserver.nix diff --git a/roles/taskserver.nix b/roles/taskserver.nix new file mode 100644 index 0000000..f182b99 --- /dev/null +++ b/roles/taskserver.nix @@ -0,0 +1,41 @@ +# 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" + ]; + }; + }; + }; + +}