diff options
author | nin <nineinchnade@gmail.com> | 2017-12-14 21:13:46 +0100 |
---|---|---|
committer | nin <nineinchnade@gmail.com> | 2017-12-14 21:13:46 +0100 |
commit | 37771ad34e18e0657636c8d0eb5b7392e3b89ba6 (patch) | |
tree | 8abda683b425494d2a273fc42d7573499b97a657 /lass/2configs/repo-sync.nix | |
parent | 7ed6fd18bb99884889a76ad9f597193861f44dc9 (diff) | |
parent | 04f7ae22d6d0720d06f78c712eb9cd245cefce82 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/2configs/repo-sync.nix')
-rw-r--r-- | lass/2configs/repo-sync.nix | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/lass/2configs/repo-sync.nix b/lass/2configs/repo-sync.nix index f3ef23e67..98dbdc227 100644 --- a/lass/2configs/repo-sync.nix +++ b/lass/2configs/repo-sync.nix @@ -22,15 +22,22 @@ let }); }; in { - rules = with git; singleton { - user = with config.krebs.users; [ - config.krebs.users."${config.networking.hostName}-repo-sync" - lass - lass-shodan - ]; - repo = [ repo ]; - perm = push ''refs/*'' [ non-fast-forward create delete merge ]; - }; + rules = with git; [ + { + user = with config.krebs.users; [ + config.krebs.users."${config.networking.hostName}-repo-sync" + lass + lass-shodan + ]; + repo = [ repo ]; + perm = push ''refs/*'' [ non-fast-forward create delete merge ]; + } + { + user = attrValues config.krebs.users; + repo = [ repo ]; + perm = fetch; + } + ]; repos."${name}" = repo; }; |