aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-07 00:24:33 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-07 00:24:33 +0200
commitd21de7a044cc39c452306880707f79162b666b60 (patch)
tree2e33e036edc5a1ef5b21e0f654afc7ea543d6dce /nixops/modules/websites
parentc9d13ae319b4f01202a1afad046c3c1add1cc7ba (diff)
downloadNix-d21de7a044cc39c452306880707f79162b666b60.tar.gz
Nix-d21de7a044cc39c452306880707f79162b666b60.tar.zst
Nix-d21de7a044cc39c452306880707f79162b666b60.zip
Move kanboard to overlays
Diffstat (limited to 'nixops/modules/websites')
-rw-r--r--nixops/modules/websites/tools/tools/default.nix1
-rw-r--r--nixops/modules/websites/tools/tools/kanboard.json15
-rw-r--r--nixops/modules/websites/tools/tools/kanboard.nix12
3 files changed, 2 insertions, 26 deletions
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
14 }; 14 };
15 rainloop = pkgs.callPackage ./rainloop.nix {}; 15 rainloop = pkgs.callPackage ./rainloop.nix {};
16 kanboard = pkgs.callPackage ./kanboard.nix { 16 kanboard = pkgs.callPackage ./kanboard.nix {
17 inherit (mylibs) fetchedGithub;
18 env = myconfig.env.tools.kanboard; 17 env = myconfig.env.tools.kanboard;
19 }; 18 };
20 wallabag = pkgs.callPackage ./wallabag.nix { env = myconfig.env.tools.wallabag; }; 19 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 @@
1{
2 "tag": "v1.2.9",
3 "meta": {
4 "name": "kanboard",
5 "url": "https://github.com/kanboard/kanboard/",
6 "branch": "refs/tags/v1.2.9"
7 },
8 "github": {
9 "owner": "kanboard",
10 "repo": "kanboard",
11 "rev": "c4152316b14936556edf3bcc4d11f16ba31b8ae7",
12 "sha256": "18bn9zhyfc5x28hwcxss7chdq7c8rshc8jxgai65i5l68iwhvjg7",
13 "fetchSubmodules": true
14 }
15}
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 @@
1{ lib, env, fetchedGithub, writeText, stdenv, fetchurl }: 1{ env, kanboard }:
2rec { 2rec {
3 varDir = "/var/lib/kanboard"; 3 varDir = "/var/lib/kanboard";
4 activationScript = { 4 activationScript = {
@@ -38,15 +38,7 @@ rec {
38 ?> 38 ?>
39 ''; 39 '';
40 }]; 40 }];
41 webRoot = stdenv.mkDerivation (fetchedGithub ./kanboard.json // rec { 41 webRoot = kanboard { kanboard_config = "/var/secrets/webapps/tools-kanboard"; };
42 dontBuild = true;
43 installPhase = ''
44 cp -a . $out
45 ln -s /var/secrets/webapps/tools-kanboard $out/config.php
46 mv $out/data $out/dataold
47 ln -s ${varDir}/data $out/data
48 '';
49 });
50 apache = rec { 42 apache = rec {
51 user = "wwwrun"; 43 user = "wwwrun";
52 group = "wwwrun"; 44 group = "wwwrun";