repo-sync: add konsens for krops & stockholm

This commit is contained in:
lassulus 2018-08-29 17:42:00 +02:00
parent af2753507d
commit 427488be81

View File

@ -3,6 +3,10 @@
with import <stockholm/lib>; with import <stockholm/lib>;
let let
konsens-user = {
name = "konsens";
pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIKKozGNGBAzHnyj6xUlsjGxxknyChXvuyrddkWVVnz7";
};
mirror = "git@${config.networking.hostName}:"; mirror = "git@${config.networking.hostName}:";
defineRepo = { defineRepo = {
@ -20,7 +24,7 @@ let
verbose = false; verbose = false;
channel = "#xxx"; channel = "#xxx";
server = "irc.r"; server = "irc.r";
branches = [ "newest" ]; branches = [ "master" "newest" ];
}; };
}; };
}; };
@ -37,6 +41,13 @@ let
repo = [ repo ]; repo = [ repo ];
perm = push ''refs/*'' [ non-fast-forward create delete merge ]; perm = push ''refs/*'' [ non-fast-forward create delete merge ];
} }
{
user = [
konsens-user
];
repo = [ repo ];
perm = push ''refs/heads/master'' [ create merge ];
}
{ {
user = attrValues config.krebs.users; user = attrValues config.krebs.users;
repo = [ repo ]; repo = [ repo ];
@ -108,6 +119,19 @@ in {
krebs.repo-sync = { krebs.repo-sync = {
enable = true; enable = true;
}; };
krebs.konsens = {
enable = true;
repos = {
krops = { branchesToCheck = [ "lassulus" "tv" ]; };
stockholm = {};
};
};
krebs.secret.files.konsens = {
path = "/var/lib/konsens/.ssh/id_ed25519";
owner = konsens-user;
source-path = "${<secrets/konsens.id_ed25519>}";
};
imports = [ imports = [
(sync-retiolum { name = "the_playlist"; desc = "Good Music collection + tools"; section = "art"; }) (sync-retiolum { name = "the_playlist"; desc = "Good Music collection + tools"; section = "art"; })