alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
configs: remove git-brain
author
lassulus
date
2 weeks ago
(Oct 7, 2026, 1:35 AM CEST)
commit
38861518
388615181bbc311a18a2f5e5c44bafcc5031000c
parent
71568c73
71568c73c934a892e967dcccf27da6b1784c0e80
-82
2 changed files
Expand all
Collapse all
Unified
Split
configs
git-brain.nix
machines
green
config.nix
-81
configs/git-brain.nix
Reviewed
···
1
1
-
{
2
2
-
self,
3
3
-
config,
4
4
-
lib,
5
5
-
pkgs,
6
6
-
...
7
7
-
}:
8
8
-
let
9
9
-
git = self.inputs.stockholm.lib.git;
10
10
-
repos = krebs-repos;
11
11
-
rules = lib.concatMap krebs-rules (lib.attrValues krebs-repos);
12
12
-
13
13
-
krebs-repos = lib.mapAttrs make-krebs-repo {
14
14
-
brain = { };
15
15
-
};
16
16
-
17
17
-
make-krebs-repo =
18
18
-
with git;
19
19
-
name:
20
20
-
{
21
21
-
cgit ? { },
22
22
-
...
23
23
-
}:
24
24
-
{
25
25
-
inherit cgit name;
26
26
-
public = false;
27
27
-
hooks = {
28
28
-
post-receive = pkgs.git-hooks.irc-announce {
29
29
-
nick = config.networking.hostName;
30
30
-
verbose = true;
31
31
-
channel = "#xxx";
32
32
-
# TODO remove the hardcoded hostname
33
33
-
server = "irc.r";
34
34
-
};
35
35
-
};
36
36
-
};
37
37
-
38
38
-
# TODO: get the list of all krebsministers
39
39
-
krebsminister = with config.krebs.users; [
40
40
-
makefu
41
41
-
tv
42
42
-
kmein
43
43
-
];
44
44
-
krebs-rules = repo: set-owners repo [ config.krebs.users.lass ] ++ set-ro-access repo krebsminister;
45
45
-
46
46
-
set-ro-access =
47
47
-
with git;
48
48
-
repo: user:
49
49
-
lib.singleton {
50
50
-
inherit user;
51
51
-
repo = [ repo ];
52
52
-
perm = fetch;
53
53
-
};
54
54
-
55
55
-
set-owners =
56
56
-
with git;
57
57
-
repo: user:
58
58
-
lib.singleton {
59
59
-
inherit user;
60
60
-
repo = [ repo ];
61
61
-
perm = push "refs/*" [
62
62
-
non-fast-forward
63
63
-
create
64
64
-
delete
65
65
-
merge
66
66
-
];
67
67
-
};
68
68
-
69
69
-
in
70
70
-
{
71
71
-
imports = [
72
72
-
self.inputs.stockholm.nixosModules.git
73
73
-
];
74
74
-
krebs.git = {
75
75
-
enable = true;
76
76
-
cgit = {
77
77
-
enable = false;
78
78
-
};
79
79
-
inherit repos rules;
80
80
-
};
81
81
-
}
-1
machines/green/config.nix
View file
Reviewed
···
17
17
18
18
../../configs/pass.nix
19
19
20
20
-
../../configs/git-brain.nix
21
20
../../configs/et-server.nix
22
21
23
22
../../configs/atuin-server.nix