summaryrefslogtreecommitdiffstats
path: root/modules/mors
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-05-25 19:32:54 +0200
committerlassulus <lass@aidsballs.de>2015-05-25 19:32:54 +0200
commit67526d6c0849d9abc60c9a4cbee28e3a2dc707ce (patch)
tree5c29a048415e5612834dad2bce02f3323d41f9ad /modules/mors
parent26a166c8c1a577cefe7884eaeea1541eb910aa87 (diff)
activate gitolite config
Diffstat (limited to 'modules/mors')
-rw-r--r--modules/mors/default.nix1
-rw-r--r--modules/mors/repos.nix75
2 files changed, 76 insertions, 0 deletions
diff --git a/modules/mors/default.nix b/modules/mors/default.nix
index 8768cd1ec..c7d1f1b9a 100644
--- a/modules/mors/default.nix
+++ b/modules/mors/default.nix
@@ -24,6 +24,7 @@
../lass/binary-caches.nix
../lass/ircd.nix
../../secrets/mors-pw.nix
+ ./repos.nix
];
nixpkgs = {
url = "https://github.com/Lassulus/nixpkgs";
diff --git a/modules/mors/repos.nix b/modules/mors/repos.nix
new file mode 100644
index 000000000..6d3cf2157
--- /dev/null
+++ b/modules/mors/repos.nix
@@ -0,0 +1,75 @@
+{ ... }:
+
+{
+ imports = [
+ ../lass/gitolite-base.nix
+ ];
+
+ services.gitolite = {
+ repos = {
+
+ config = {
+ users = {
+ lass = "RW+";
+ uriel = "R";
+ tv = "R";
+ };
+ extraConfig = "option hook.post-receive = irc-announce";
+ };
+
+ pass = {
+ users = {
+ lass = "RW+";
+ uriel = "R";
+ };
+ };
+
+ load-env = {
+ users = {
+ lass = "RW+";
+ uriel = "R";
+ tv = "R";
+ };
+ extraConfig = "option hook.post-receive = irc-announce";
+ };
+
+ emse-hsdb = {
+ users = {
+ lass = "RW+";
+ uriel = "R";
+ tv = "R";
+ };
+ extraConfig = "option hook.post-receive = irc-announce";
+ };
+
+ painload = {
+ users = {
+ lass = "RW+";
+ tv = "R";
+ makefu = "R";
+ };
+ extraConfig = "option hook.post-receive = irc-announce";
+ };
+
+ brain = {
+ users = {
+ lass = "RW+";
+ tv = "R";
+ makefu = "R";
+ };
+ extraConfig = "option hook.post-receive = irc-announce";
+ };
+
+ services = {
+ users = {
+ lass = "RW+";
+ tv = "R";
+ makefu = "R";
+ reaktor = "R";
+ };
+ extraConfig = "option hook.post-receive = irc-announce";
+ };
+
+ };
+ };
+}