Skip to content

Commit

Permalink
modules/nixos/hydra: switch to fork
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed Aug 7, 2024
1 parent 4aedab3 commit 8a6ec08
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
18 changes: 18 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
flake-compat.url = "github:nix-community/flake-compat";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
hydra.flake = false;
hydra.url = "github:qowoz/hydra/community";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-darwin.url = "github:LnL7/nix-darwin";
nixpkgs-update-github-releases.flake = false;
Expand Down
14 changes: 13 additions & 1 deletion modules/nixos/hydra.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ pkgs, config, ... }:
{
inputs,
pkgs,
config,
...
}:
{
config = {
sops.secrets.hydra-admin-password.owner = "hydra";
Expand All @@ -25,6 +30,13 @@

services.hydra = {
enable = true;

package = (pkgs.hydra_unstable.override { nix = pkgs.nixVersions.nix_2_22; }).overrideAttrs (o: {
version = "${pkgs.lib.substring 0 8 inputs.hydra.rev}";
src = inputs.hydra;
buildInputs = o.buildInputs ++ [ pkgs.perlPackages.DBIxClassHelpers ];
});

# remote builders set in /etc/nix/machines + localhost
buildMachinesFiles = [
(pkgs.runCommand "etc-nix-machines" { machines = config.environment.etc."nix/machines".text; } ''
Expand Down

0 comments on commit 8a6ec08

Please sign in to comment.