Merge pull request #156907 from Pamplemousse/taskserver

This commit is contained in:
Sandro 2022-02-20 21:21:45 +01:00 committed by GitHub
commit 6335f75903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -106,7 +106,7 @@ let
certtool = "${pkgs.gnutls.bin}/bin/certtool"; certtool = "${pkgs.gnutls.bin}/bin/certtool";
nixos-taskserver = pkgs.pythonPackages.buildPythonApplication { nixos-taskserver = with pkgs.python2.pkgs; buildPythonApplication {
name = "nixos-taskserver"; name = "nixos-taskserver";
src = pkgs.runCommand "nixos-taskserver-src" { preferLocalBuild = true; } '' src = pkgs.runCommand "nixos-taskserver-src" { preferLocalBuild = true; } ''
@ -129,7 +129,7 @@ let
EOF EOF
''; '';
propagatedBuildInputs = [ pkgs.pythonPackages.click ]; propagatedBuildInputs = [ click ];
}; };
in { in {
@ -138,12 +138,13 @@ in {
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = '' description = let
url = "https://nixos.org/manual/nixos/stable/index.html#module-services-taskserver";
in ''
Whether to enable the Taskwarrior server. Whether to enable the Taskwarrior server.
More instructions about NixOS in conjuction with Taskserver can be More instructions about NixOS in conjuction with Taskserver can be
found in the NixOS manual at found <link xlink:href="${url}">in the NixOS manual</link>.
<olink targetdoc="manual" targetptr="module-taskserver"/>.
''; '';
}; };

View File

@ -1,7 +1,7 @@
<chapter xmlns="http://docbook.org/ns/docbook" <chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.0" version="5.0"
xml:id="module-taskserver"> xml:id="module-services-taskserver">
<title>Taskserver</title> <title>Taskserver</title>
<para> <para>
Taskserver is the server component of Taskserver is the server component of