Skip to content

Commit

Permalink
modules/nixos/hydra: switch to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed Jul 26, 2024
1 parent f822d3f commit 27a6100
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 1 deletion.
87 changes: 87 additions & 0 deletions flake.lock

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

8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
flake-compat.url = "github:nix-community/flake-compat";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
hydra-nix.inputs.flake-compat.follows = "flake-compat";
hydra-nix.inputs.nixpkgs-regression.follows = "empty";
hydra-nix.inputs.nixpkgs.follows = "hydra-nixpkgs";
hydra-nix.url = "github:NixOS/nix/2.21-maintenance";
hydra-nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11-small";
hydra.inputs.nix.follows = "hydra-nix";
hydra.inputs.nixpkgs.follows = "hydra-nixpkgs";
hydra.url = "github:NixOS/hydra/hydra.nixos.org-nix-2.21";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-darwin.url = "github:LnL7/nix-darwin";
nixpkgs-update-github-releases.flake = false;
Expand Down
10 changes: 9 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,9 @@

services.hydra = {
enable = true;

package = inputs.hydra.packages.${pkgs.system}.default;

# 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 27a6100

Please sign in to comment.