nixos/cryptpad: remove
This commit is contained in:
parent
126bd386d8
commit
1c0cc017b5
|
@ -1047,7 +1047,6 @@
|
||||||
./services/web-apps/code-server.nix
|
./services/web-apps/code-server.nix
|
||||||
./services/web-apps/baget.nix
|
./services/web-apps/baget.nix
|
||||||
./services/web-apps/convos.nix
|
./services/web-apps/convos.nix
|
||||||
./services/web-apps/cryptpad.nix
|
|
||||||
./services/web-apps/dex.nix
|
./services/web-apps/dex.nix
|
||||||
./services/web-apps/discourse.nix
|
./services/web-apps/discourse.nix
|
||||||
./services/web-apps/documize.nix
|
./services/web-apps/documize.nix
|
||||||
|
|
|
@ -98,6 +98,7 @@ with lib;
|
||||||
(mkRemovedOptionModule [ "services" "virtuoso" ] "The corresponding package was removed from nixpkgs.")
|
(mkRemovedOptionModule [ "services" "virtuoso" ] "The corresponding package was removed from nixpkgs.")
|
||||||
(mkRemovedOptionModule [ "services" "openfire" ] "The corresponding package was removed from nixpkgs.")
|
(mkRemovedOptionModule [ "services" "openfire" ] "The corresponding package was removed from nixpkgs.")
|
||||||
(mkRemovedOptionModule [ "services" "riak" ] "The corresponding package was removed from nixpkgs.")
|
(mkRemovedOptionModule [ "services" "riak" ] "The corresponding package was removed from nixpkgs.")
|
||||||
|
(mkRemovedOptionModule [ "services" "cryptpad" ] "The corresponding package was removed from nixpkgs.")
|
||||||
|
|
||||||
# Do NOT add any option renames here, see top of the file
|
# Do NOT add any option renames here, see top of the file
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.services.cryptpad;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.services.cryptpad = {
|
|
||||||
enable = mkEnableOption "the Cryptpad service";
|
|
||||||
|
|
||||||
package = mkOption {
|
|
||||||
default = pkgs.cryptpad;
|
|
||||||
defaultText = literalExpression "pkgs.cryptpad";
|
|
||||||
type = types.package;
|
|
||||||
description = "
|
|
||||||
Cryptpad package to use.
|
|
||||||
";
|
|
||||||
};
|
|
||||||
|
|
||||||
configFile = mkOption {
|
|
||||||
type = types.path;
|
|
||||||
default = "${cfg.package}/lib/node_modules/cryptpad/config/config.example.js";
|
|
||||||
defaultText = literalExpression ''"''${package}/lib/node_modules/cryptpad/config/config.example.js"'';
|
|
||||||
description = ''
|
|
||||||
Path to the JavaScript configuration file.
|
|
||||||
|
|
||||||
See <link
|
|
||||||
xlink:href="https://github.com/xwiki-labs/cryptpad/blob/master/config/config.example.js"/>
|
|
||||||
for a configuration example.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
systemd.services.cryptpad = {
|
|
||||||
description = "Cryptpad Service";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
after = [ "networking.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
DynamicUser = true;
|
|
||||||
Environment = [
|
|
||||||
"CRYPTPAD_CONFIG=${cfg.configFile}"
|
|
||||||
"HOME=%S/cryptpad"
|
|
||||||
];
|
|
||||||
ExecStart = "${cfg.package}/bin/cryptpad";
|
|
||||||
PrivateTmp = true;
|
|
||||||
Restart = "always";
|
|
||||||
StateDirectory = "cryptpad";
|
|
||||||
WorkingDirectory = "%S/cryptpad";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -110,7 +110,6 @@ in {
|
||||||
cri-o = handleTestOn ["x86_64-linux"] ./cri-o.nix {};
|
cri-o = handleTestOn ["x86_64-linux"] ./cri-o.nix {};
|
||||||
custom-ca = handleTest ./custom-ca.nix {};
|
custom-ca = handleTest ./custom-ca.nix {};
|
||||||
croc = handleTest ./croc.nix {};
|
croc = handleTest ./croc.nix {};
|
||||||
cryptpad = handleTest ./cryptpad.nix {};
|
|
||||||
deluge = handleTest ./deluge.nix {};
|
deluge = handleTest ./deluge.nix {};
|
||||||
dendrite = handleTest ./matrix/dendrite.nix {};
|
dendrite = handleTest ./matrix/dendrite.nix {};
|
||||||
dex-oidc = handleTest ./dex-oidc.nix {};
|
dex-oidc = handleTest ./dex-oidc.nix {};
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
import ./make-test-python.nix ({ lib, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
{
|
|
||||||
name = "cryptpad";
|
|
||||||
meta.maintainers = with maintainers; [ davhau ];
|
|
||||||
|
|
||||||
nodes.machine =
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{ services.cryptpad.enable = true; };
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
machine.wait_for_unit("cryptpad.service")
|
|
||||||
machine.wait_for_open_port(3000)
|
|
||||||
machine.succeed("curl -L --fail http://localhost:3000/sheet")
|
|
||||||
'';
|
|
||||||
})
|
|
Loading…
Reference in a new issue