nixos/modules/taskserver.nix

29 lines
575 B
Nix

{
pkgs,
lib,
config,
...
}: let
cfg = config.services.taskserverConfigured;
in {
options.services.taskserverConfigured = with lib; {
enable = mkEnableOption "Enable configured taskserver";
dataDir = mkOption {
type = types.str;
description = "Folder to use for storage";
};
};
config = {
services.taskserver = lib.mkIf cfg.enable {
inherit (cfg) dataDir enable;
fqdn = "elysia-clarki";
debug = true;
listenHost = "0.0.0.0";
organisations.default = {
users = ["malte"];
};
};
};
}