stockholm/old/modules/common/krebs-repos.nix

37 lines
626 B
Nix
Raw Normal View History

2015-06-09 22:15:24 +00:00
{ lib, ... }:
let
inherit (lib) mkDefault;
mkSecureRepo = name:
{ inherit name;
value = {
users = {
lass = mkDefault "R";
tv = mkDefault "R";
makefu = mkDefault "R";
};
};
};
mkRepo = name:
{ inherit name;
value = {
users = {
lass = mkDefault "R";
tv = mkDefault "R";
makefu = mkDefault "R";
};
};
};
in {
services.gitolite.repos =
(lib.listToAttrs (map mkSecureRepo [ "brain" ])) //
(lib.listToAttrs (map mkRepo [
"painload"
"services"
"hosts"
]));
}