Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
Removed:
- hosts/nix-cache01/ directory
- services/nix-cache/build-flakes.{nix,sh} (replaced by NATS builder)
- Vault secret and AppRole for nix-cache01
- Old signing key variable from terraform
- Old trusted public key from system/nix.nix
Updated:
- flake.nix: removed nixosConfiguration
- README.md: nix-cache01 -> nix-cache02
- Monitoring rules: removed build-flakes alerts, updated harmonia to nix-cache02
- Simplified proxy.nix (no longer needs hostname conditional)
nix-cache02 is now the sole binary cache host.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ lib, pkgs, ... }:
|
|
let
|
|
nixos-rebuild-test = pkgs.writeShellApplication {
|
|
name = "nixos-rebuild-test";
|
|
runtimeInputs = [ pkgs.nixos-rebuild ];
|
|
text = ''
|
|
if [ $# -lt 2 ]; then
|
|
echo "Usage: nixos-rebuild-test <action> <branch>"
|
|
echo "Example: nixos-rebuild-test boot my-feature-branch"
|
|
exit 1
|
|
fi
|
|
|
|
action="$1"
|
|
branch="$2"
|
|
shift 2
|
|
|
|
exec nixos-rebuild "$action" --flake "git+https://git.t-juice.club/torjus/nixos-servers.git?ref=$branch" "$@"
|
|
'';
|
|
};
|
|
in
|
|
{
|
|
environment.systemPackages = [ nixos-rebuild-test ];
|
|
nix = {
|
|
gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 14d";
|
|
};
|
|
|
|
optimise = {
|
|
automatic = true;
|
|
};
|
|
|
|
settings = {
|
|
trusted-substituters = [
|
|
"https://nix-cache.home.2rjus.net"
|
|
"https://cache.nixos.org"
|
|
"https://cuda-maintainers.cachix.org"
|
|
];
|
|
substituters = lib.mkOverride 90 [
|
|
"https://nix-cache.home.2rjus.net"
|
|
"https://cache.nixos.org"
|
|
"https://cuda-maintainers.cachix.org"
|
|
];
|
|
trusted-public-keys = [
|
|
"nix-cache02.home.2rjus.net-1:QyT5FAvJtV+EPQrgQQ6iV9JMg1kRiWuIAJftM35QMls="
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
|
|
];
|
|
};
|
|
};
|
|
}
|