From d21de7a044cc39c452306880707f79162b666b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 7 May 2019 00:24:33 +0200 Subject: Move kanboard to overlays --- nixops/modules/websites/tools/tools/default.nix | 1 - nixops/modules/websites/tools/tools/kanboard.json | 15 --------------- nixops/modules/websites/tools/tools/kanboard.nix | 12 ++---------- 3 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 nixops/modules/websites/tools/tools/kanboard.json (limited to 'nixops') diff --git a/nixops/modules/websites/tools/tools/default.nix b/nixops/modules/websites/tools/tools/default.nix index 1d459b7..262e558 100644 --- a/nixops/modules/websites/tools/tools/default.nix +++ b/nixops/modules/websites/tools/tools/default.nix @@ -14,7 +14,6 @@ let }; rainloop = pkgs.callPackage ./rainloop.nix {}; kanboard = pkgs.callPackage ./kanboard.nix { - inherit (mylibs) fetchedGithub; env = myconfig.env.tools.kanboard; }; wallabag = pkgs.callPackage ./wallabag.nix { env = myconfig.env.tools.wallabag; }; diff --git a/nixops/modules/websites/tools/tools/kanboard.json b/nixops/modules/websites/tools/tools/kanboard.json deleted file mode 100644 index 5b1d115..0000000 --- a/nixops/modules/websites/tools/tools/kanboard.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "tag": "v1.2.9", - "meta": { - "name": "kanboard", - "url": "https://github.com/kanboard/kanboard/", - "branch": "refs/tags/v1.2.9" - }, - "github": { - "owner": "kanboard", - "repo": "kanboard", - "rev": "c4152316b14936556edf3bcc4d11f16ba31b8ae7", - "sha256": "18bn9zhyfc5x28hwcxss7chdq7c8rshc8jxgai65i5l68iwhvjg7", - "fetchSubmodules": true - } -} diff --git a/nixops/modules/websites/tools/tools/kanboard.nix b/nixops/modules/websites/tools/tools/kanboard.nix index 37cb8cc..9966a37 100644 --- a/nixops/modules/websites/tools/tools/kanboard.nix +++ b/nixops/modules/websites/tools/tools/kanboard.nix @@ -1,4 +1,4 @@ -{ lib, env, fetchedGithub, writeText, stdenv, fetchurl }: +{ env, kanboard }: rec { varDir = "/var/lib/kanboard"; activationScript = { @@ -38,15 +38,7 @@ rec { ?> ''; }]; - webRoot = stdenv.mkDerivation (fetchedGithub ./kanboard.json // rec { - dontBuild = true; - installPhase = '' - cp -a . $out - ln -s /var/secrets/webapps/tools-kanboard $out/config.php - mv $out/data $out/dataold - ln -s ${varDir}/data $out/data - ''; - }); + webRoot = kanboard { kanboard_config = "/var/secrets/webapps/tools-kanboard"; }; apache = rec { user = "wwwrun"; group = "wwwrun"; -- cgit v1.2.3