set up gihubstatus
This commit is contained in:
parent
6655fc776f
commit
f65d24bf1e
3 changed files with 24 additions and 0 deletions
|
@ -9,6 +9,7 @@ let
|
|||
wg0PrivKey = "${config.networking.hostName}-wg0-key";
|
||||
wgHydraPrivKey = "${config.networking.hostName}-wg-hydra-key";
|
||||
wg0PresharedKey = "${config.networking.hostName}-wg0-preshared-key";
|
||||
hydraGitHubAuth = "hydra-github-authorization";
|
||||
in
|
||||
{
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
|
@ -17,6 +18,8 @@ in
|
|||
|
||||
services.logind.lidSwitch = "ignore";
|
||||
|
||||
age.secrets.${hydraGitHubAuth}.file = "${secretsPath}/${hydraGitHubAuth}.age";
|
||||
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
package = pkgs.hydra-unstable;
|
||||
|
@ -26,6 +29,16 @@ in
|
|||
useSubstitutes = true;
|
||||
port = 3000;
|
||||
listenHost = "10.3.3.3";
|
||||
extraConfig = ''
|
||||
Include ${config.age.secrets."${hydraGitHubAuth}".path}
|
||||
|
||||
<githubstatus>
|
||||
jobs = nix-config:nix-config.*
|
||||
inputs = nix-config
|
||||
excludeBuildFromContext = 1
|
||||
useShortContext = 1
|
||||
</githubstatus>
|
||||
'';
|
||||
};
|
||||
|
||||
nix.buildMachines = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue