Skip to content

Commit 2d1bd50

Browse files
authored
Merge pull request #241 from nix-community/fix-fix-fix-cachix
fix cachix
2 parents 2838e2a + 46dabe6 commit 2d1bd50

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

buildbot_nix/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def environment(self) -> Mapping[str, str | Interpolate]:
6969
return environment
7070

7171
class Config:
72-
fields = exclude_fields(["singing_key", "auth_token"])
72+
fields = exclude_fields(["signing_key", "auth_token"])
7373

7474

7575
class GiteaConfig(BaseModel):

examples/master.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@
6262

6363
# optional cachix
6464
#cachix = {
65+
# enabled = true;
6566
# name = "my-cachix";
6667
# # One of the following is required:
67-
# signingKeyFile = "/var/lib/secrets/cachix-key";
68-
# authTokenFile = "/var/lib/secrets/cachix-token";
68+
# auth.signingKey.file = "/var/lib/secrets/cachix-key";
69+
# auth.authToken.file = "/var/lib/secrets/cachix-token";
6970
#};
7071
};
7172

nix/checks/master.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
oauthSecretFile = pkgs.writeText "oauthSecret" "ffffffffffffffffffffffffffffffffffffffff";
2424
oauthId = "aaaaaaaaaaaaaaaaaaaa";
2525
};
26+
cachix = {
27+
enable = true;
28+
name = "my-cachix";
29+
auth.authToken.file = pkgs.writeText "cachixAuthToken" "00000000000000000000";
30+
};
2631
};
2732
};
2833
};
@@ -31,5 +36,6 @@
3136
start_all()
3237
# wait for our service to start
3338
node1.wait_for_unit("buildbot-master")
39+
node1.wait_until_succeeds("curl --fail -s --head localhost:8010", timeout=60)
3440
'';
3541
}

0 commit comments

Comments
 (0)