diff options
-rw-r--r-- | nixops/modules/websites/tools/tools/default.nix | 1 | ||||
-rw-r--r-- | nixops/modules/websites/tools/tools/kanboard.json | 15 | ||||
-rw-r--r-- | nixops/modules/websites/tools/tools/kanboard.nix | 12 | ||||
-rw-r--r-- | overlays/default.nix | 1 | ||||
-rw-r--r-- | overlays/kanboard/default.nix | 19 |
5 files changed, 22 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 }: |
2 | rec { | 2 | rec { |
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"; |
diff --git a/overlays/default.nix b/overlays/default.nix index 9ed703c..501be73 100644 --- a/overlays/default.nix +++ b/overlays/default.nix | |||
@@ -7,6 +7,7 @@ | |||
7 | elinks = import ./elinks; | 7 | elinks = import ./elinks; |
8 | gitweb = import ./gitweb; | 8 | gitweb = import ./gitweb; |
9 | goaccess = import ./goaccess; | 9 | goaccess = import ./goaccess; |
10 | kanboard = import ./kanboard; | ||
10 | ldapvi = import ./ldapvi; | 11 | ldapvi = import ./ldapvi; |
11 | lesspipe = import ./lesspipe; | 12 | lesspipe = import ./lesspipe; |
12 | mysql = import ./databases/mysql; | 13 | mysql = import ./databases/mysql; |
diff --git a/overlays/kanboard/default.nix b/overlays/kanboard/default.nix new file mode 100644 index 0000000..eeae8db --- /dev/null +++ b/overlays/kanboard/default.nix | |||
@@ -0,0 +1,19 @@ | |||
1 | self: super: { | ||
2 | kanboard = { varDir ? "/var/lib/kanboard", kanboard_config ? "/etc/kanboard/config.php" }: | ||
3 | super.kanboard.overrideAttrs(old: rec { | ||
4 | name = "kanboard-${version}"; | ||
5 | version = "1.2.9"; | ||
6 | src = self.fetchFromGitHub { | ||
7 | owner = "kanboard"; | ||
8 | repo = "kanboard"; | ||
9 | rev = "c4152316b14936556edf3bcc4d11f16ba31b8ae7"; | ||
10 | sha256 = "18bn9zhyfc5x28hwcxss7chdq7c8rshc8jxgai65i5l68iwhvjg7"; | ||
11 | }; | ||
12 | installPhase = '' | ||
13 | cp -a . $out | ||
14 | ln -s ${kanboard_config} $out/config.php | ||
15 | mv $out/data $out/dataold | ||
16 | ln -s ${varDir}/data $out/data | ||
17 | ''; | ||
18 | }); | ||
19 | } | ||