Skip to content

Commit

Permalink
mimas: enable hydra
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Dec 5, 2024
1 parent 69d486c commit 7ae5b71
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/haumea/postgresql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

# FIXME: don't use 'trust'.
authentication = ''
host hydra all 10.254.1.3/32 trust
host hydra all 10.254.1.1/32 trust
host hydra all 10.254.1.5/32 trust
local all root peer map=prometheus
'';
Expand Down
21 changes: 21 additions & 0 deletions build/mimas/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
pkgs,
...
}:

{
imports = [
../common.nix
../hydra.nix
../hydra-proxy.nix
../hydra-scaler.nix
../packet-importer.nix
./boot.nix
./network.nix
];
Expand All @@ -13,5 +22,17 @@
hostId = "aba92093";
};

# garbage collection
nix.gc = {
automatic = true;
options = ''--max-freed "$((400 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
dates = "03,09,15,21:15";
};

# gc outputs as well, since they are served from the cache
nix.extraOptions = "gc-keep-outputs = false";

nixpkgs.hostPlatform = "x86_64-linux";

system.stateVersion = "24.11";
}

0 comments on commit 7ae5b71

Please sign in to comment.