Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jun 24, 2024
1 parent 719d387 commit d00f070
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 28 deletions.
2 changes: 1 addition & 1 deletion build/datadog/hydra.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{config, pkgs, ...}:
{ pkgs, ...}:
{
systemd.services.dd-agent.environment.PYTHONPATH = "${pkgs.pythonPackages.requests}/lib/python2.7/site-packages";
environment.etc =
Expand Down
4 changes: 1 addition & 3 deletions build/diffoscope.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{ config, pkgs, ... }:

with pkgs.lib;
{ pkgs, ... }:

let

Expand Down
6 changes: 2 additions & 4 deletions build/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
inputs.rfc39.url = "github:NixOS/rfc39";
inputs.rfc39.inputs.nixpkgs.follows = "nixpkgs";

outputs = flakes @ { self, agenix, colmena, disko, hydra, hydra-scale-equinix-metal, nix, nixpkgs, nixos-channel-scripts, nix-netboot-serve, rfc39 }:
outputs = { self, agenix, colmena, disko, hydra, hydra-scale-equinix-metal, nix, nixpkgs, nixos-channel-scripts, nix-netboot-serve, rfc39 }:
let
inherit (nixpkgs) lib;

flakesModule = {
imports = [
agenix.nixosModules.age
Expand Down Expand Up @@ -93,7 +91,7 @@
devShell.x86_64-linux = let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in pkgs.mkShell {
buildInputs = with pkgs; [
buildInputs = [
agenix.packages.x86_64-linux.agenix
colmena.packages.x86_64-linux.colmena
];
Expand Down
2 changes: 1 addition & 1 deletion build/hydra-proxy.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ...}:
{ config, ...}:

{
services.nginx = {
Expand Down
4 changes: 1 addition & 3 deletions build/hydra-scaler.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, pkgs, lib, ... }:

{
services.hydra-scale-equinix-metal = {
enable = true;
Expand All @@ -24,7 +22,7 @@
# The netboot URL for arm64 big-parallel is: https://netboot.nixos.org/dispatch/hydra/hydra.nixos.org/equinix-metal-builders/main/c3-large-arm--big-parallel ("Always PXE" enabled, "hydra" tag)
# The netboot URL for arm64 small is: https://netboot.nixos.org/dispatch/hydra/hydra.nixos.org/equinix-metal-builders/main/c3-large-arm ("Always PXE" enabled, "hydra" tag)

x86_64-linux = rec {
x86_64-linux = {
bigparallel = {
divisor = 16;
minimum = 1;
Expand Down
2 changes: 1 addition & 1 deletion build/hydra.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ in
'';

# Work around https://github.com/NixOS/hydra/issues/1337
services.hydra-dev.package = pkgs.hydra.overrideAttrs(final: prev: {
services.hydra-dev.package = pkgs.hydra.overrideAttrs(_: prev: {
postPatch = ''
${prev.postPatch or ""}
rm src/lib/Hydra/Plugin/DeclarativeJobsets.pm
Expand Down
2 changes: 1 addition & 1 deletion build/packet-importer.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
let
importer = pkgs.callPackage ../hydra-packet-importer { };
in
Expand Down
4 changes: 0 additions & 4 deletions build/pluto/prometheus/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{ config
, ...
}:

{
imports = [
./alertmanager.nix
Expand Down
5 changes: 1 addition & 4 deletions build/rhea/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ nodes, config, lib, pkgs, ... }:
{ pkgs, ... }:
{
imports =
[ ./hardware-configuration.nix
Expand Down Expand Up @@ -44,9 +44,6 @@

nix.extraOptions = "gc-keep-outputs = false";

#services.postfix.enable = true;
#services.postfix.hostname = "hydra.nixos.org";

# Don't rate-limit the journal.
services.journald.rateLimitBurst = 0;

Expand Down
2 changes: 1 addition & 1 deletion build/rhea/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, ... }:
{ config, lib, modulesPath, ... }:

{
imports =
Expand Down
2 changes: 1 addition & 1 deletion channels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ rec {
};
};

channels-with-urls = builtins.mapAttrs (name: about: about.job) channels;
channels-with-urls = builtins.mapAttrs (_: about: about.job) channels;
}
1 change: 0 additions & 1 deletion lib/service-order.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# Given a set of services, make them run one at a time in a specific
# order, on a timer.
{ lib }:
{
# Given a list of systemd service, give each one an After
# attribute, so they start in a specific order. The returned
Expand Down
6 changes: 3 additions & 3 deletions survey/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# https://github.com/NixOS/nixpkgs/pull/157832
inputs.nixpkgs.url = "github:garbas/nixpkgs/update-limesurvey";

outputs = flakes @ { self, nixpkgs }:
outputs = { self, nixpkgs }:
let
customOverlay = final: prev: {
customOverlay = _: prev: {
limesurvey = prev.limesurvey.overrideAttrs (old: {
installPhase = old.installPhase + ''
mkdir -p $out/share/limesurvey/upload/themes/survey/generalfiles/
Expand All @@ -27,7 +27,7 @@
[
"${nixpkgs}/nixos/modules/virtualisation/amazon-image.nix"
../modules/common.nix
({ config, pkgs, lib, ... }:
({ pkgs, lib, ... }:
{
ec2.hvm = true;

Expand Down

0 comments on commit d00f070

Please sign in to comment.