summaryrefslogtreecommitdiffstats
path: root/makefu/3modules/taskserver.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-06-01 12:49:36 +0200
committerlassulus <lass@lassul.us>2017-06-01 12:49:36 +0200
commite50bc4f3eb3dac13bba4ae6158e839a52455c3c3 (patch)
treeb3c1fc1f3e00312e92e4ab747c31839db665eebd /makefu/3modules/taskserver.nix
parent73b073c3fe037f31e05828a1071c9b4b19f7a2ff (diff)
parent9e04d0132133840fba14aca194f18925e3f353d5 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/3modules/taskserver.nix')
-rw-r--r--makefu/3modules/taskserver.nix60
1 files changed, 0 insertions, 60 deletions
diff --git a/makefu/3modules/taskserver.nix b/makefu/3modules/taskserver.nix
deleted file mode 100644
index 40a18fe05..000000000
--- a/makefu/3modules/taskserver.nix
+++ /dev/null
@@ -1,60 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-with import <stockholm/lib>;
-let
- cfg = config.makefu.taskserver;
-
- out = {
- options.makefu.taskserver = api;
- config = lib.mkIf cfg.enable imp;
- };
-
- api = {
- enable = mkEnableOption "taskserver";
-
- workingDir = mkOption {
- type = types.str;
- default = "/var/lib/taskserver";
- };
-
- package = mkOption {
- type = types.package;
- default = pkgs.taskserver;
- };
-
-
- };
-
- imp = {
- environment.systemPackages = [ cfg.package ];
- systemd.services.taskserver = {
- description = "taskd server";
- after = [ "network.target" ];
- wantedBy = [ "multi-user.target" ];
- restartIfChanged = true;
- unitConfig = {
- Documentation = "http://taskwarrior.org/docs/#taskd" ;
- # https://taskwarrior.org/docs/taskserver/configure.html
- ConditionPathExists = "${cfg.workingDir}/config";
- };
- serviceConfig = {
- Type = "simple";
- ExecStart = "${cfg.package}/bin/taskd server --data ${cfg.workingDir}";
- WorkingDirectory = cfg.workingDir;
- # PrivateTmp = true;
- # InaccessibleDirectories = "/home /boot /opt /mnt /media";
- User = "taskd";
- };
- };
-
- users.users.taskd = {
- uid = genid "taskd";
- home = cfg.workingDir;
- createHome = true;
- };
- users.groups.taskd.gid = genid "taskd";
- };
-
-in
-out
-