l 1 prism: add (temporary) config for nin

This commit is contained in:
lassulus 2017-01-16 17:25:21 +01:00
parent c54a22b9f3
commit 242e0fcb6c

View File

@ -226,6 +226,33 @@ in {
enable = true;
};
}
{
users.users.nin = {
uid = genid "nin";
inherit (config.krebs.users.nin) home;
group = "users";
createHome = true;
useDefaultShell = true;
openssh.authorizedKeys.keys = [
config.krebs.users.nin.pubkey
];
extraGroups = [
"libvirtd"
];
};
krebs.git.rules = [
{
user = [ config.krebs.users.nin ];
repo = [ config.krebs.git.repos.stockholm ];
perm = with git; push "refs/heads/nin" [ fast-forward non-fast-forward create delete merge ];
}
];
krebs.repo-sync.repos.stockholm.nin = {
origin.url = "http://cgit.prism/stockholm";
origin.ref = "heads/nin";
mirror.url = "git@${config.networking.hostName}:stockholm";
};
}
];
krebs.build.host = config.krebs.hosts.prism;